I have this code in my index.html page while the javascript code needed for the menu and the second short script needed to execute the "prepare.php" file to build me a database to start with (in MySQL). This works fine in firefox and chrome but for some reason the Internet Explorer doesn't want to run them both, it runs the one that is above the other so I either have a menu OR a database, it depends on which script I put first.
This,among other things, causes a function called load to be called on the href of the anchor. This works fine. Howver I want to use the live() function with this as I am going to dynamically change the links in the listnav div. I tried doing it like this :
But that does not work. My question is how would I go about changing this function so that the actions are applied to any new anchors added to the div dynamically?
I was wondering if there is anyway I could use javascrip in a member legend so that when you hover over the word admin on the legend it would make admins bold, I would be able to make it happen if say you clicked the word, but is there anyway you can make it live, so that when you hover over the world they become bold, I would think you would need to assign CSS styles to each group and make some sort of on hover that value = bold but I don't know how to do that.
I am exhausted today, not to include the funk that the BCS national championship put me in, so I must be either crazy or missing something. When I do the following the code works;
how to toggle between functions, however I because I am reloading the element that contains the checkbox I am clicking, I need to use the live function (I think).
I have used live before and it works great for clicks, but can I use it with toggle.
frist of all, im a newbe on jquery. i have a table where i can add new "<span>" and i can edit it with editInPlace plugin but i have a problem. when i load the web with those elements (<span>), i cant edit it after i add a new item, then, all the items are editable
I'm working on a form to add items within a bespoke CMS and have been contemplated the pros and cons of implementing a type of live search within the form. The way I was thinking of it working is:Users start to fill in form to add items to the databaseI don't want them to duplicate these items so thought that as they type the item name, I could return a table of similar results below with a note to say "The database already contains these similar items - Please check to ensure you are not replicating ... blah blah"My 2 questions are a) is this actually of any benefit to the user or should I just tell them to check the list of existing items before starting and b) anyone know of any tutorials to tell me how to do it!
how I can execute this 'function(dateStr, inst)' . The jQuery partially works it divert to another page but without parameters, the outcome displays [object Object].
I am using a delayedObserver which works great, but I can't figure out how to use it when the field I am binding is loaded via ajax. So ideally, something like this:
This would bind any form elements with the live_form_field data attribute to the observer and submit the form. The code doesn't work though since that isn't the right syntax for the .live method.
So I have a set of <SELECT> elements that are ajax'd in and out depending on what is selected using the event "change". I know that .live("change") is not fully supported.
I create the links that match this on the fly with jquery.builder.js, and have confirmed that searching the resultant DOM in the console with the string "#admin_new_records ul a" does indeed return the elements I want. The problem is that when I click on the links, the jqt framework still seems to handle the tap, and returns to the first screen with an error due to the fact that it cannot recognise the url I created for the links. The issue seems to be that live does not work, but I have also tried to set this on tap() immediately after creating and appending the links, and this does not work, either.
I'm working with the quasipartikel plugin for multi selection. Available here:Mutliselect.Great plugin, very happy with it overall.However, on my page I want to trigger functionality when something is added or removed. Looking through the code, I see that a link is added for each item of a selection box with the class 'action'. Thus, I figure I should be able to trigger code of it, like so:
var j$ = jQuery.noConflict(); j$(document).ready(function() { ... j$('.multiselect').multiselect(); ...
I am trying to use the .live() jQuery function in cooperation with the .addClass() function, but I am unsure of how exactly to pass the parameter of the class-to-be-added's name through the live() function to work with addClass().Here is an example of the jQuery I would be using: [code]
I would like to use addClass() in both instances in the code above in cooperation with live() while being able to pass the class's name through the live() function. I've searched around the web quite a bit, but none of my searches have resulted in an answer that fits my specific needs.
function callFunction(param1, param2) { } this function is called when a user clicks on an image onClick='callFunction(1,2);' etc.
How do I apply live to callFunction? The image appears from an ajax call and as such the function doesn't recognise the call. I've used live on my other simple functions, but how would I use it on my custom function? The reason I am using the custom function is because I need to pass parameters to it.
var sortableTable = new Class({:thumbsup: getOptions: function(){ return {[code]....
It works flawlessly on my dev page: http:[url].....But I am having issues with is on my live page: http:[url].....My first thought is that it could be a labeling issue (ie: I forgot to remove "/dev" when moving the HTML over to live) but after reviewing for an hour, I don't believe this is the issue.
I'm trying to figure out how to display the live price of gold on a site. I've been googling for 2 hours and have gotten nowhere, most results are people trying to sell you something. I just want a simple display of the price of gold on a site, and don't know where to start.
Is there a way to read from a page using a setTimeOut rather than a readyStateChange?
I have a PHP script, and it uses ob_flush to print the data as it comes up with it. I would like to use AJAX to read that data as it comes out, and update a percentage bar with the data returned from the PHP. The problem is, is that usual AJAX uses readyStateChange. And the only options i have are 1) It has started, and 4) Its done.
I have a php file... I click on the link, ajax generates a lightbox, I close the lightbox, then I click the link again and I am redirected to a new php file rather than loading the ajax. Here is my lightbox JS. Should this cause a conflict?
Is there a trick (with javascript or something) that can change a hidden value on a page directly from the browser without using "Firebug" software? for example: <input type="hidden" name="something" value="something_else"> I need to change "something_else" to "something_else_2"
I've got an external server with an application that retrieves some information to display on a page if available. Data should be returned as a JSon object. I've got this to work locally for all browsers but for some reason when I put it onto a live website it will not work for certain browsers...
Here the code...
Code: var servletaddress = 'http://www.applicationaddress.com/DataR/'; function getJson (type) { var httpRequest = getHttpRequest();
[Code]....
If I deploy a *.html file into a locally running Tomcat fro example, the web page requests the data from the external server on [URL] for all browsers I've tested.
If I put this section of code up onto a live environment e.g [URL] the JavaScript will no longer work in all browsers eg IE6 yet still works in Chrome & Firefox...
Normally this would be security settings or something on the browsers I guess but its the same browser window locally as externally.
I am developing an application and need to be able to use either JavaScript or PHP to request a page, add code to the end of it, and thenopen it for the user.What I want: