Hi, I'm using jquery's ajax functions to grab a page fragment and display in a section of a page - this fragment includes html and references to external js files.
The program flow looks like this:
Main Page calls -> Fragment page which calls -> various large js files via script tags.
I've turned on the cache option on my initial ajax...
So I've managed to get stuck using Prototype for a Project, and so far I can't stand it.
All I want to do, is replace a title within a very specific place - it has no ID and I can't change the HTML, since it's not hosted by me.
Event.observe(window, 'load', function() {
$$('#page #container .content .frame .entry h3.entry-title')....
I am trying to add the functionality of driving directions to my map
but I am at a loss on how to implement it. When I try to incorporate the driving directions code into the rest of my javascript the directions don't show up.
If anyone has some advice on how to fix this problem I would greatly appreciate it.
Also its a Drupal based we...
How can i replace window.href="someurlhtml" for firefox and IE support ?
...
Hello all,
I get a response form my server via AJAX with an array that is json_encode (php funciton). However, I am having difficulty parsing it.
I can do this:
alert(response);
But it just gives me a bunch of text like so:
[{"user_id":"Dev_V2_MEH_0910_M03_v03c_NEW_CODE_03"......"grouper_opae_algorithm":"nap_v42lp"}]
Please note, ...
Hiya,
I've got an order form, to which I can append fields by clicking a button. I've got some back end javascript running which totals up the order price, but the grand total script is eluding me.
My problem is that I need the script to seach the entire DOM and find how many have an ID which matches the following pattern.
totprice0...
I'm usually a C# developer, but writing a mostly-client side application using jQuery.
It is reasonably straight forward: I have a list of "groups" which have some parameters (like a group name) and a list of "users" who also have some parameters.
At the moment I try to manage that using a <li> with a specific id, so there is a lot of ...
I am making a web service call and receiving a JSON formatted response. After I receive the response, I would like to display the data in a page. Before I display this data on the page I need to perform checks to make sure that certain elements are defined, and if not give them default values (example below).
var scoreSummary = JSON.p...
I've been trying to get Zero Clipboard and jQuery UI Dialog to play nice together, and it's proving to be rather difficult.
Zero Clipboard allows copying to clipboard from Javascript by placing a transparent Flash movie over a button, so that the user clicks on the Flash when he tried to click the button. This works nicely and cross-bro...
Dear all,
What is wrong with this code? Why is my imagemap not working?
function createimg()
{
var img = new Image();
img.src='link/to/image';
img.alt='Next image'; img.id = 'span1'; img.style.zIndex = 10;
img.style.position = 'absolute';
img.style.display='block';
img.style.top = '130p...
I have a weird question about swfobject behavior. I have the embed code like this:
script type="text/javascript">
It doesnt appear.
When I do this, it does!
script type="text/javascript">
var flashvars = {}; var params = { allowScriptAccess: "always", loop: "true" }; var attributes = {}; swfobject.embedSWF("FILENAME", "myAlternativ...
Hi,
How to get and set window popup height and width in Internet Explorer using JavaScript
In Firefox I am able to set the height and width using outerHeight , outerWidth property of window.
Thanks.
...
Is it possible to somehow catch event, if it's propagation was stopped?
$('span').click(function(e) {
e.stopPropagation();
});
Maybe there are some kind of global handler? Like:
Event.registerHandler('click', function(e) {
alert('thanks');
});
There should be no additional code for regular handlers.
...
Just to pre-empt the 'why do you want to do this' replies Here's what I'm doing:
If another control is clicked I make an ajax call to get a server generated value and stuff it in the textbox. I then, on the client-side, set the control to readOnly (I don't want to control to be disabled as I need it to postback so Im setting the readOn...
how can i call 2 methods using function.createdelgate()
lik i'm having
2 methods (method_one and method_two)
Function.CreateDelegate(this,method_one);
but i need to call both the methods in it...
...
Hey,
I have a select options form fields setup like below:
<select name="options[]" multiple="multiple">
<option value="1" selected="selected">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
<option value="4">Option 4</option>
</select>
The user can select multiple options, but I woul...
Hi,
Seems to be a known problem, but I didn't find the solution.
When your facebook app tries to perform some JS call via loading fb:iframe with JS code, Safari blocks this saying "Unsafe JavaScript attempt to access frame with URL from frame with URL . Domain, names and protocols must match".
Is there a way to solve this?
...
how to dispay different errormessages of customvalidator with validatorcallout extender? when callout extender is not using , based on conditions different error messages are displaying by customvalidator. but its not working validatorcallout extender.
...
Hi,
i have a website which uses top in javascript to show bookshops in a panel. Now i want to add this website into another website using a frame. But when i fix the url in the src of the frame , it changes the hierarchy of the pages or images and the bookshops are not shown.
Can anybody sugget me the solution for this.
Khushi
...
Hi
Event.observe(window,"load",function() {
$$(".elem_classs").findAll(function(node){
return node.getAttribute('title');
}).each(function(node){
new Tooltip(node,node.title);
node.removeAttribute("title");
});
});
Using above method, I can retrieve all elements having ".elem_class" and apply some javascript functio...