[jQuery] Jquery noconflict not working

2010-01-17 Thread Alex Crooks
If you look at the page;

http://www.sars-clan.co.uk/forums/ (ignore styling etc as its a work
in progress)

In the header source the forum system myBB calls prototype and then I
call jquery and the noconflict;


  jQuery.noConflict();

 jQuery(document).ready(function($){

   //my jquery stuff

});


with all my jquery code inside those tags. However I still get
warnings about unknown functions although they are clearly defined in
the header, any thoughts?


[jQuery] ajax form plugin submit button

2010-01-06 Thread Alex
Hello everyone,

I have a problem submitting a form tag with submit buttons. many of
the scripts used in that page require the name of these submit buttons
to work correctly. I already read about the serialize function and
submit buttons so tried the form plugin as suggested on the jQuery
page but i can't get this to work.

On a single site there is no problem using the plugin but the site is
only loaded at the beginning, after that everything works with ajax
requests and the page is never reloaded. The response of nearly all
ajax requests is a new page which is loaded into a draggable div so
that the site works like an OS. My problem is that the form tags that
are contained in these responses aren't submitted by the plugin, they
have their normal function and reload the webpage which is
catastrophical for that layout.

If you need more information please let me know.
Sorry for my english ;-)


[jQuery] Re: google.load issue

2009-12-30 Thread Alex
Hi David,

Google document a nicer way to deal with this in their documentation.
The Google API can call a javascript callback when the library you
requested has been loaded.
http://code.google.com/apis/ajax/documentation/#GoogleLoad


Cheers,
Alex

On Dec 24, 11:44 pm, "speedpac...@gmail.com" 
wrote:
> Hi Mike,
>
> Sorry for the late response, but thanks a lot for this feedback.  It
> does indeed help.
> I'm only a bit disappointed that I now have 4 google.load()</
> script> blocks :)
>
> thanks a lot though!
> David.
>
> On 17 dec, 03:08, Michael Geary <m...@mg.to> wrote:
>
>
>
> > Put your lines of code in separate <script> tags.
>
> > google.load() uses document.write() to write a <script> tag into the
> > document. This <script> tag is not executed until the current <script> tag
> > exits. So your jQuery.noConflict() call is being executed before jQuery is
> > loaded.
>
> > If you break up the <script> tags like this, it should work fine:
>
> > <script type="text/javascript>
> > google.load("jquery", "1");
> > 
>
> >  > 
>
> > -Mike
>
> > On Wed, Dec 16, 2009 at 7:58 AM, speedpac...@gmail.com <
>
> > speedpac...@gmail.com> wrote:
> > > Hi,
>
> > > For obvious reasons, we try using Google to load javascript libraries
> > > when we need them.
> > > We already used Prototype using google.load() function, and now we
> > > decided to add jQuery as well since we will be using some jQuery UI
> > > widgets to speed up development on a project (more specifically we
> > > need a decent date selector!
>
> > > Basically, what we did is:
>
> > > google.load("jquery", "1");
> > > jQuery.noConflict();
> > > google.load("prototype", "1");
>
> > > Unfortunately, for some reason, it complains that noConflict() is no
> > > method leading me to believe tha the jQuery code isn't loaded properly
> > > prior to calling the noConflict() method...
>
> > > We have never had such an issue in the past, and if we link directly
> > > to the .js file hosted on google servers without using the google.load
> > > () method, it works fine as well...
>
> > > Does anyone know this is a known issue when working with google.load
> > > ()?
>
> > > Since we manage the needed libraries through a database, and use the
> > > google.load() function for all these libraries, it would be a shame if
> > > we need to include jQuery library directly without using the
> > > google.load() method :)
>
> > > thanks in advance for your very much appreciated feedback!
>
> > > David.


[jQuery] Re: How cani achieve this functionality?

2009-12-29 Thread Alex Mcauley
Check ajaxrain.com .. they have the perfect example of what you are
trying to do.

On Dec 29, 4:55 pm, Šime Vidas  wrote:
> The combo is a SELECT element, why shouldn't you be able to write
> inside it?
>
> For every character keyup event, you AJAX load the OPTION elements and
> put them inside the SELECT:::


[jQuery] Re: sorting columns using jquery. noob with html and java. built custom php using snmp

2009-12-29 Thread Alex Mcauley
Sorry there is a bug / error in the pastebin ...

I just noticed that it starts with  then it calls the
 ... tags

You will need to take the body tag from the very top and add it
directly after the closing  tag..

My bad!...

Also ... tablesorter comes with some CSS to make it look pretty so it
might be an idea to include that in the document too - save using ugly
(and nearly depreciated)  tags

On Dec 29, 4:25 pm, "Mark K. Ayler Jr. "  wrote:
> Alex,
> Thanks so much. It does look a lot better...and looking through your
> changes, it makes perfect sense. Thanks for doing that.
>
> Are you sure this code belongs in my .php file or should it be in the
> jquery.tablesorter.min.js file?
>
> $(document).ready(function() {
>     // call the tablesorter plugin
>     $("#results_table").tablesorter({
>            // enable debug mode
>            debug: true
>     });
>
> });
>
> On Tue, Dec 29, 2009 at 5:08 AM, Alex Mcauley <
>
>
>
> webmas...@thecarmarketplace.com> wrote:
> > You have alot of unclosed tags in there ...
>
> > Let me help you out a bit and pastebin how it should look!...
>
> > This should help
>
> >http://pastie.org/759936
>
> > On Dec 28, 6:44 pm, ace123  wrote:
> > > I'm not sure if this is possible...but I love the jquery tablesorter-
> > > but I can't figure out how to get it working. My page displays as if
> > > it's not even there. I used php to snmpget some data from my network
> > > switches and routers. It saves it to my DB...then I have this page to
> > > display the information from the database. This is where I want to be
> > > able to sort, by switch type, software version, etc. I'm not a code
> > > guy, just a network engineer trying to make my job easier. Your help
> > > please is MUCH appreciated. I've been trying to get this to
> > > work off and on for 6 months.
>
> > > This is what I've got so far
>
> > > The page looks something like this when I load it.
>
> > > Host Name       Device Type     Firmware Version        Software Version
>
> > > edge-109c-gs.gov.ntwk   470-24T         "3.6.0.7"     "v3.7.3.13"
> > > edge-241c-gs.anx.ntwk   470-24T         "3.6.0.7"     "v3.7.3.13"
> > > edge-399c-gs.anx.ntwk   470-24T         "3.6.0.7"     "v3.7.3.13"
>
> > > 
> > > 
>
> > >  > > $username="root";
> > > $password="";
> > > $database="switchesdb";
> > > mysql_connect(localhost,$username,$password);
> > > mysql_select_db($database) or die( "Unable to select database");
> > > $query="SELECT * FROM switchcode";
> > > $result=mysql_query($query);
> > > $num=mysql_numrows($result);
> > > ?>
>
> > > 
> > > </
> > > script>
> > > <script type="text/javascript" src="/var/www/html/
> > > jquery.tablesorter.min.js">
> > >  > > $(document).ready(function() {
> > >     // call the tablesorter plugin
> > >     $("table").tablesorter({
> > >         // enable debug mode
> > >         debug: true
> > >     });
>
> > > });
>
> > > 
> > > 
> > > 
> > > 
> > > 
> > > Host Name
> > > Device Type
> > > Firmware Version > > th>
> > > Software Version > > th>
> > > 
> > > 
> > > 
> > >  > > $i=0;
> > > while ($i < $num) {
> > > $host_name=mysql_result($result,$i,"host_name");
> > > $device_type=mysql_result($result,$i,"device_type");
> > > $firmware_version=mysql_result($result,$i,"firmware_version");
> > > $software_version=mysql_result($result,$i,"software_version");
> > > ?>
>
> > > 
> > > 
> > >  > ?>
>
> > >  > > $device_type; ?>
> > >  > > =strstr($firmware_version, "\""); echo ($cleanstring); ?>
> > >  > > =strstr($software_version, "\""); echo ($cleanstring1); ?>
> > > 
> > > 
> > > 
> > > 
>
> > >  > > $i++;}
>
> > > ?>
>
> --
> Mark K Ayler Jr.
> CCNA, MCSE, NNCSS, OASIS.


[jQuery] Re: sorting columns using jquery. noob with html and java. built custom php using snmp

2009-12-29 Thread Alex Mcauley
You have alot of unclosed tags in there ...

Let me help you out a bit and pastebin how it should look!...


This should help

http://pastie.org/759936


On Dec 28, 6:44 pm, ace123  wrote:
> I'm not sure if this is possible...but I love the jquery tablesorter-
> but I can't figure out how to get it working. My page displays as if
> it's not even there. I used php to snmpget some data from my network
> switches and routers. It saves it to my DB...then I have this page to
> display the information from the database. This is where I want to be
> able to sort, by switch type, software version, etc. I'm not a code
> guy, just a network engineer trying to make my job easier. Your help
> please is MUCH appreciated. I've been trying to get this to
> work off and on for 6 months.
>
> This is what I've got so far
>
> The page looks something like this when I load it.
>
> Host Name       Device Type     Firmware Version        Software Version
>
> edge-109c-gs.gov.ntwk   470-24T         "3.6.0.7"     "v3.7.3.13"
> edge-241c-gs.anx.ntwk   470-24T         "3.6.0.7"     "v3.7.3.13"
> edge-399c-gs.anx.ntwk   470-24T         "3.6.0.7"     "v3.7.3.13"
>
> 
> 
>
>  $username="root";
> $password="";
> $database="switchesdb";
> mysql_connect(localhost,$username,$password);
> mysql_select_db($database) or die( "Unable to select database");
> $query="SELECT * FROM switchcode";
> $result=mysql_query($query);
> $num=mysql_numrows($result);
> ?>
>
> 
>  script>
>