Hello,
I am currently trying to write functional tests for a charging form which gets loaded on to the page via AJAX(jQuery). It loads the form from the charge_form action which returns the consult_form.js.erb view.
This all works, but I am having trouble with my testing.
In the functional I can go to the action but I cannot use asse...
I've been banging my head against this for the past few hours.
I'm building an HTML chunk with Javascript and appending it to the page's DOM. Problem is this works only if Firebug is running and disabling Firebug doesn't help. When Firebug isn't running the code gets generated but not appended to the DOM (it's not that it's invisible o...
I have a public in my code behind page that takes a string.
I would like to call this method from javascript.
The parameter that I want to pass down is variable that changes from a ddl.
So I have something like this:
var value = document.getElementById('ddlContact').value;
<%=PopulateContactFields("value") %>
This p...
Hey there!
So, I'm trying to do what I thought was a simple task... But I'm not getting anywhere...
All I want to is to get some .js and .css files loaded by my WebPart. I'm using VS2008 + WSPBuilder. I've googled a lot about this but I couldn't find a decent answer.
What I would like to know:
Where in the directory structure should I...
i need to hide a div (like mail sent successfull in gmail)after certain time period when i reload the page ? any body please help me by giving codes..
...
Hi, im writing some code to move dinamically an element on my page.
If i try to apply this at img element with generous dimension i notice in IE a very slow down effect.
Also, if the image is not displayed with its full size, IE seems to be more more slow.
I think IE apply a sort of resize algorithm for img every time it is refreshed...
...
I have a problem positioning an element in certain browsers. I'm using the jQuery autocomplete found here. The div containing autocomplete values should be directly under the text box, and line up perfectly. The code sets the css left property of the div by using the left property generated by $(textbox).offset();
After un-packing th...
using
http://maps.google.com/maps/api/geocode/json?address=xyz
we get a json file
I am wondering how can i maniupluate the results in javascript? How do i create the results object in javascript?
http://code.google.com/apis/maps/documentation/geocoding/index.html#JSONParsing
this doesnt really explain how they get the myJSONResult
...
Hi,
The following code will not work for me in ie6 but unsurprisingly, it does work in every other browser:
$('#myDropdown').val('value');
I have no idea why this is happening.
Any thoughts?
Paul
...
Hello, could some one recommend a way to get page name from a url using JavaScript?
For instance if I have http://www.cnn.com/news/1234/news.html?a=1&b=2&c=3
I just need to get "news.html" string
Thanks!
...
The javascript code I now have can toggle a single row of data. Whether JQuery or javascript, how do I toggle multiple rows?
In this example, when location 1 (value = "1") is selected, I would like to have tr tags "11", "12", "13" displayed (Location "1" Building "1" => "11")and Location 2 displays tr "21", "22".
<script type="text...
Whilst looking for a "B-V color index to temperature conversion formula"
I found this javascript:
var C1 = 3.979145;
var C2 = -0.654499;
var C3 = 1.74069;
var C4 = -4.608815;
var C5 = 6.7926;
var C6 = -5.39691;
var C7 = 2.19297;
var C8 = -.359496;
bmv = parseFloat(BV);
with (Math) {
logt=
...
Hey there,
seems that I am not permitted to use QtScript for my own script interpreter, although QtScript is GPLed.
But do you know anything about the JavaScriptCore's license?
Am I allowed to use this for my own scripting language?
Cheers,
Manuel
...
I'm compiling a list of audio + video players (flash / javascript / other) that I can embed into a website.
flowplayer: http://flowplayer.org/
jw player:
http://www.longtailvideo.com/players/
premium beat:
http://www.premiumbeat.com/flash_resources/free_flash_music_player/
xspf web player:
http://musicplayer.sourceforge.net/
yahoo me...
I'm playing with the flickr api and php. I want to pass some information from PHP to Javascript through Ajax. I have the following code:
json_encode($pics);
which results in the following example JSON string:
[{"id":"4363603591","title":"blue, white and red...another seattle view","date_faved":"1266379499"},{"id":"4004908219","titl...
I downloaded the JSON2.js from http://www.json.org/json2.js and it does not have implementation for JSON2.stringify()
To be able to call a wcf service from jquery, I am using a helper class that uses JSON2.stringify()
What's the difference between the two and where do I get JSON2?
...
We are using MS Word as a spell checker for a few fields on a private company web site, and when IE security settings are correct it works well. (Zone for the site set to Trusted, and trusted zone modified to allow control to run without prompting.)
The script we are using creates a word object and closes it afterward. While the objec...
I am trying to create something on a webpage that allows my users to create a desktop shortcut. Because my users are NOT technically savvy, I would like to avoid having them try to drag and drop. Is there a way that I could create a button on a webpage (either using JavaScript or .Net) that automatically creates a desktop shortcut for th...
Hello,
In most of the videos, I see expert JQuery developers writing complete code for the ready event eg:
$(document).ready(function(){
//.....
});
rather than its shortcut:
$(function(){
//.....
});
Is there any particular down side to using shortcut method?
Edit:
Jquery documentation says:
shortcut not recommended
That'...
hello friends I haev a dropdownlist box on my page.. with A B C D E F
each pages have difernt images
once If I select A I need display one Image like B I need to display other image/table on the page..
can any one tel me how to do this?
thanks for all your time
...