Live Javascript
May 1, 2006
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.
View 2 Replies
ADVERTISEMENT
Jul 22, 2010
I have a function that I apply to every anchor tag in a div called listnav. I do so like this:
$('.listnav a').each(function(i, el) {
$(el).click(function(ev) {
ev.preventDefault();
var href = $(this).attr('href');
[Code]....
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 :
$('.listnav a').each(function(i, el) {
$(el).live('click',function(ev) {
ev.preventDefault();
[Code]....
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?
View 2 Replies
View Related
Jun 13, 2010
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.
[Code]...
View 1 Replies
View Related
Jan 10, 2012
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;
[Code]...
View 3 Replies
View Related
Oct 4, 2010
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.
View 1 Replies
View Related
Oct 14, 2010
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
[Code]...
View 1 Replies
View Related
Oct 9, 2011
Do you log JavaScript errors on your live website?
I mean the actual JavaScript errors that usere experience?
If you do, what tool do you use and how is it working out?
View 8 Replies
View Related
Jul 18, 2006
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!
View 1 Replies
View Related
Aug 8, 2011
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].
Code:
$.noConflict();
jQuery(function() {
jQuery('#datepicker').datepicker({
[Code]....
View 1 Replies
View Related
Jan 31, 2011
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:
$('[data-live_form_field]').live
.delayedObserver(0.35, function(value, element){
$(this).parents('form:first').submit();
});
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.
View 1 Replies
View Related
Jun 18, 2009
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.
View 2 Replies
View Related
May 18, 2009
I normally do this with livequery:
So any new .mylink's on a page would also be bound with my custom function.
How can I do this with the new LIVE event? or is it even possible?
View 4 Replies
View Related
Sep 1, 2009
This is my Html: I am trying to get the element that I binded to live(), but always i am getting it's children. For example, this is my code:
<div id=div1 class=theClass><b>Hye</b></div>
<div id=div2 class=theClass>Hello
</div>
[Code].....
View 1 Replies
View Related
Jan 6, 2011
I am trying to:
$('.entity_id').live(
'mouseover mouseout' , function(event){
if (event.type == 'mouseover') {
console.log('mouseIn entityID', $(this).attr('client'))
$(this).css('color: red;')
} else {
[Code]...
this is supposed to work whenever:
[Code]...
is in the dialog box, the logs are working, but the css color changes are not.
View 2 Replies
View Related
Jan 19, 2010
I have this in my jQuery() function:
$( "#admin_new_records ul a" ).live( "tap", function() {
jQT.goTo( "#admin_new_records" );
return false;
});
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.
View 2 Replies
View Related
Mar 10, 2011
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();
...
[code]....
View 1 Replies
View Related
Feb 19, 2011
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.
View 2 Replies
View Related
Apr 20, 2011
my jquery was intially was
$(document).ready(function () {
$('ul.nav li').hover(
function () {
[code]....
View 4 Replies
View Related
Jan 15, 2011
I have my own custom function:
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.
View 1 Replies
View Related
Dec 28, 2009
I'm having with a sortable table script.
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.
View 4 Replies
View Related
Feb 10, 2010
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.
View 1 Replies
View Related
Dec 6, 2005
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.
Is there a way i can read from it as it loads?
View 1 Replies
View Related
Dec 18, 2010
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?
Code JavaScript:
$(function() {
$('div#lightBoxCloseButton').live('click', function() {
$('div.lightBoxCon').hide();
$('div.lightBoxCover').hide();
});
});
View 4 Replies
View Related
Feb 17, 2010
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"
View 2 Replies
View Related
Mar 25, 2010
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.
View 1 Replies
View Related
Jun 11, 2011
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:
Code:
// JavaScript
/* Get page */
[code]....
View 2 Replies
View Related