I'm using wget to create static copies of my site however there are several elements which require external assets that are pulled in via javascript. The pattern of the script should be fairly constant and no urls are dynamically created. The urls I need to extract look like :
onclick="return ns.homepage.load({e:this, src:'https://mysub...
I have a form in jQuery where I update all the images via a simple ajax call to reload the entire page. Unfortunately the captions are included in that form as well, and as I start writing, my captions are overwritten.
What then would you do to keep them?
Would you..
Save them before the ajax call and replace them after it?
Avoid up...
I have two javascript files included at the header of my website. Both files contains almost same variables.
If I have header like this
<head>
<script src="http://127.0.0.1/js/file1.js" type="text/javascript"></script>
<script src="http://127.0.0.1/js/file2.js" type="text/javascript"></script>
</head>
Is it possible to ...
Is it possible to print the contents of a pdf using php ,javascript or jquery
...
What is the appropriate method to get the already-initialized javascript to interact with content loaded using jQuery's load() method?
Example: You have a table with an onclick event for each row, then append() a new row to the table, suddenly the onclick() event does not fire.
Hopefully it is possible to do this without manually re-in...
Google's GMail service does it because it integrates Google Talk -- and Etherpad (now typewith.me) made famous the system which is used by, for example, Google Wave. All such systems update the page the user is working on effectively instantly when other users make changes to the page. It's easy to tell the server that a change has happe...
I have been thinking about building a client to client program. But the way I want is to use the broswer to do it, helped by a server that can make that connection.
The troubles comes when I need to have an unnconected socket (or pasive) in a client, waiting for a connection.
I have been thinking about Html5 WebSockets, but it doesn't...
I tried to integrate this javascript mvc sample http://www.alexatnet.com/content/model-view-controller-mvc-javascript into an asp.net page, I'm complete beginner at jquery and nothing shows up, why ?
Update: I have added missing html listbox but now no javascript seems to execute to initialize the listbox nor the buttons seem to work
<...
http://stackoverflow.com/questions/3861970/regexpression-test
I have posted a problem in the above link
based on that i have done like bellow
That too is error
var regExpression=new RegExp("^([a-zA-Z0-9_\-\.]+)$");
alert (regExpression.test("11aa"));
...
i'm using JQuery-ui dialog;
i'd like to perform my custom actions when user clicks on dialog's close button [X], but i'd like to prevent the closing event too!
i tried this code without success:
$( ".selector" ).dialog({
close: function(event, ui) {
event.preventDefault();
//mycode
}
...
I have a site that will be used mostly on mobile devices, the top nav are tabs but right now they are hard coded instead of using Javascript. We are taking into consideration all mobile devices that will not have javascript.
So, is there a way to gracefully degrade javascript Tab functionality to then to to the right html page?
...
Hi all, I'm looking for a tool that allows a non-tech person the ability to edit hard coded content in XHTML. For instance, Pagelime merged with jEditable.
The site is currently static, and I'd basically like to allow one person to log in, click on elements, change the content (P, H1-6, etc), then click enter and write that content dire...
New to Javscript and jQuery, so I assume this is a pretty simple question.
I have a date I want to split into a string, then print out the array.
var date = "12/10/2010";
var dateArray = date.split(/);
$('#printbox').html($(dateArray[0]));
<span id="printbox"></span>
Edit: The question is, how can I split "12/10/2010" into an arr...
Hello,
I am trying to toggle the height off a grid when the initial setup has autoheight is true.
I want to be able to toggle the height when the grid becomes bigger then the browser view.
The grid is on a normal page without an ext viewport.
If I try setting a height like this, then I loose the scrollbar.
I can see in firebug that th...
I can't seem to solve this.
Originally the JSP code had a function in Javascript that would call a jsp from another server:
window.open("<%= otherServer %>/ourreports/Company/fooreport.jsp?index"+index,"Foo",options);
where otherServer was a local server (http://192.168.4.40:8080)
This worked fine, and would pop out a new window with...
String +
if user click the + sign i want to show some oder list
then String -
If the user click the - sign i want to hide order list
How to acheive this with javascript , not using ajax , jquery
...
I like how you can use the Apple remote in front row and i know other apps on the mac support it. I am wondering if Web Apps could support it via Javascript? I had a idea for a tv type interface. I would have it understand the Apple remote and also understand up down left right enter back. I know from working on a slideshow app before th...
Hi all,
my task is to get (updating) data from a GMail page with Greasemonkey's injected scripts. I want to get each object of HTMLHtmlElement (<html>) type from an opened page.
What is a best way to enumerate all <something>.document instances existing in Firefox's currently open tab? Greasemonkey has unsafeWindow, but don't know what ...
I am building a splash page for a website with jquery animations.
My problem is: sometimes (before the page and images are cached by the browser) the images load in an order which detracts from the quality of the animation.
Ok, heres what I did:
the container div has the following css: background:url(images/colorcity.png)
if js is e...
Hello.
I have made this sandbox test:
<html>
<head>
<title>whatever</title>
<script type="text/javascript">
function myLittleTest() {
var obj, arr, armap;
arr = [1, 2, 3, 5, 7, 11];
obj = {};
obj = arr;
alert (typeof arr);
...