Search Results

Search found 23794 results on 952 pages for 'serverside javascript'.

Page 92/952 | < Previous Page | 88 89 90 91 92 93 94 95 96 97 98 99  | Next Page >

  • Call a javascript function at distinct time intervals

    - by Dkong
    I've created a stock ticker function and need to call it every 2 minutes. I've succeeded in doing this with the javascript setInterval function, but the problem is on the first call it waits 2 minutes before calling the function, whereas I want the first load to be called right away. function CallFunction() { setInterval("GetFeed()", 2000); }

    Read the article

  • Backslash in JavaScript

    - by erasmus
    In my javascript code I have onchange="document.getElementById('user_name').value = document.getElementById('theDomain').value + '\\' + document.getElementById('fake_user_name').value" here backslash doesn't work. What is the problem? How should I write it?

    Read the article

  • Expression builder in Javascript or jQuery?

    - by morpheous
    I am searching for an expression builder GUI (like the one used in Microsoft Access). It can be plain Javascript or JQuery plugin. I am loathe to build my own and reinvent the wheel if one already exists - and yet, a search on Google does not find anything remotely useful. Is anyone aware of any such library/plugin or article that covers this?

    Read the article

  • jQuery + sexy alerts + javascript menus

    - by BibiBuBu
    Good Day! i am working on page which has Javascript Menus (dont know how made, i think they are in compressed form) Jquery Sexy Alerts now my problem is that when i want to add any type of jquery calender, it wont work :(, i have tried different possibilities found here, but yet invain. Can somebody guide me. OR some body give me suggestion to use a calender that is compatible with any other framework. help is appreciated. Thanks

    Read the article

  • JavaScript replace()

    - by d3020
    I'm trying to use the replace function in JavaScript and have a question. strNewDdlVolCannRegion = strNewDdlVolCannRegion.replace(/_existing_0/gi, "existing" + "newCounter"); That works. But I need to have the "0" be a variable. I've tried: _ + myVariable +/gi and also tried _ + 'myVariable' + /gi Could someone lend a hand with the syntax for this, please. Thank you.

    Read the article

  • image zooming using javascript or jquery

    - by tibin mathew
    Hi I need some code to zoom an image when i mouse over that image, i want to zoom that image. Consider i have 10 images in y page, when i put mouse over in first image that image should zoom and when i mov to second second image should zoom like that... how can i do this, need some javascript or jquery something like that.But not sure.how can i do this... Please help me

    Read the article

  • Javascript terminates after trying to select data from an object passed to a function

    - by Silmaril89
    Here is my javascript: $(document).ready(function(){ var queries = getUrlVars(); $.get("mail3.php", { listid: queries["listid"], mindex: queries["mindex"] }, showData, 'html'); }); function showData(data) { var response = $(data).find("#mailing").html(); if (response == null) { $("#results").html("<h3>Server didn't respond, try again.</h3>"); } else if (response.length) { var old = $("#results").html(); old = old + "<br /><h3>" + response + "</h3>"; $("#results").html(old); var words = response.split(' '); words[2] = words[2] * 1; words[4] = words[4] * 1; if (words[2] < words[4]) { var queries = getUrlVars(); $.get("mail3.php", { listid: queries["listid"], mindex: words[2] }, function(data){showData(data);}, 'html'); } else { var done = $(data).find("#done").html(); old = old + "<br />" + done; $("#results").html(old); } } else { $("#results").html("<h3>Server responded with an empty reply, try again.</h3>"); } } function getUrlVars() { var vars = [], hash; var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); for (var i = 0; i < hashes.length; i++) { hash = hashes[i].split('='); vars.push(hash[0]); vars[hash[0]] = hash[1]; } return vars; } After the first line in showData: var response = $(data).find("#mailing").html(); the javascript stops. If I put an alert before it, the alert pops up, after it, it doesn't pop up. There must be something wrong with using $(data), but why? Any ideas would be appreciated.

    Read the article

  • Parsing returned array in javascript

    - by Dan
    I'm making a call to PayPal's credit card processor, and after a successful/unsuccessful transaction it returns me a string that looks like this: DoDirectPayment failed: Array ( [TIMESTAMP] = 2010%2d05%2d02T23%3a33%3a28Z [CORRELATIONID] = 8c503f5c6c861 [ACK] = Failure [VERSION] = 51%2e0 [BUILD] = 1268624 [L_ERRORCODE0] = 10527 [L_SHORTMESSAGE0] = Invalid%20Data [L_LONGMESSAGE0] = This%20transaction%20cannot%20be%20processed%2e%20Please%20enter%20a%20valid%20credit%20card%20number%20and%20type%2e [L_SEVERITYCODE0] = Error [AMT] = 90%2e00 [CURRENCYCODE] = USD ) I'm not a javascript pro, but how exactly can I turn that into a parseable array? Thank you!

    Read the article

  • Expose C++ object to Javascript in Qt

    - by Evans
    Is there any way I can expose a C++ object/function to JavaScript running inside the QtWebKit browser in Qt? It's possible to expose ActionScript objects to JS code running inside the WebKit browser in Adobe AIR - I'm looking for similar functionality in Qt.

    Read the article

  • improve javascript prototypal inheritance

    - by Julio
    I'm using a classical javascript prototypal inheritance, like this: function Foo() {} Naknek.prototype = { //Do something }; var Foo = window.Foo = new Foo(); I want to know how I can improve this and why I can't use this model: var Foo = window.Foo = new function() { }; Foo.prototype = { //Do something }; Why this code doesn't work? In my head this is more logical than the classical prototypal inheritance.

    Read the article

  • How to count JavaScript array objects?

    - by Nikita Sumeiko
    When I have a JavaScript array like this: var member = { "mother": { "name" : "Mary", "age" : "48" }, "father": { "name" : "Bill", "age" : "50" }, "brother": { "name" : "Alex", "age" : "28" } } How to count objects in this array?!I mean how to get a counting result 3, because there're only 3 objects inside: mother, father, brother?!

    Read the article

  • Log to Firefox Error Console from JavaScript

    - by Torsten Marek
    Is it possible to add messages to the built-in error console of Firefox from JavaScript code running in web pages? I know that I there's Firebug, which provides a console object and its own error console, but I was looking for a quick fix earlier on and couldn't find anything. I guess it might not be possible at all, to prevent malicious web pages from spamming the log?

    Read the article

  • javascript replace i into I

    - by Eric Sim
    I need a javascript to replace i into I. This should apply to cases such as i'm good. So am i. He though i love him. The standard ThisContent = ThisContent.replace("i", "I"); doesn't work because it replaces every i. I also thought of ThisContent = ThisContent.replace(" i ", " I "); but it doesn't work for the first and second case. Any idea?

    Read the article

  • JavaScript - Detect HTML

    - by user208662
    Hello, I have an HTML textarea element. I want to prevent a user from entering any HTML tags in this area. How do I detect if a user has entered any HTML a textarea with JavaScript? Thank you

    Read the article

< Previous Page | 88 89 90 91 92 93 94 95 96 97 98 99  | Next Page >