Hey Guys,
I have the following html:
HTML markup
<ul id="test">
<li><a href="http://www.yahoo.com">yahoo</a></li>
<li><a href="http://www.google.com">Google</a></li>
</ul>
And some JS code:
JQuery/JavaScript Code
$('ul#test').each(function()
{
var select=$(document.createElement('select'))....
I'm loading remote data using dynamic script tags and JSON. the remote page that I'm displaying on my website has a div in it that I use to load content into.
The problem is the javascript functions do not see the div as the page loads because it is remote data. if I set a timeout of about 300 it usually works and my javascipt can see t...
From what I understand, it's a best practice to reuse XmlHttpRequest objects whenever possible. Unfortunately, I'm having a hard time understanding why. It seems that by trying to reuse XHR objects you increase your code complexity and you introduce possible browser incompatibilities. So why do so many people recommend it?
After some...
Hi
I want to display a popup windo on my rails application... Here is exactly what i want is . I have the line called "My profile" (for link i used link_to). if user clicks the link the popup should come out and displays the user's profile details.... i tried with :popup => 'true' option but it creates new window. i want some Ajax ...
Please help about controlling PDFs through JavaScript loaded inside Safari.
Safari uses a PDF plugin of its own something exclusive to Safari and not present in other webkit based browsers like Chrome.
Any of the or js commands that would work with the Adobe's plugin don't seem to work.
Any help / pointers would be appreciated.
-nee...
How can I get client side information using either Javascript or Java Servlets?
Client side information such as client's computer name, its IP Address etc.
Thanks in advance.
...
I asked this at the GWT forum but I'm impatient for the answer and I seem to get rather good responses here.
A html or jsp file is used to launch the xxx.nocache.js, which then
decides which browser "permutation" to use.
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<title>xxx</title>
<script type="text/j...
Hello , how do I disable browsing to a http link from a Html editor. I have a vb.net web form with a html editor, when I add a hyperlink to the html editor, for example my application website for instance
http://myapplication/myloginpage.aspx
When I run and click the link I can browse my application from inside the Html Editor wh...
Hi Folks,
I've been wondering:
Using prototypes in JavaScript should be more memory efficient than attaching every member of an object directly to it for the following reasons:
The prototype is just one single object.
The instances hold only references to their prototype.
Versus:
Every instance holds a copy of all the members and...
Hello
I'm using javascript to load data in a div trough XMLHttpRequest now i'm wondering if it's possible to make another XMLHttpRequest in that loaded div so an new onclick in my result
Greetings
...
I have an anchor like this:
<a href="#" rel="1 4 7 18 ">Anchor</a>
Where 'rel' attribute values are ids of some items.
Than I have a form with an input, where user should type an id and click submit button.
On submit button click I need to check the value of input like this:
var value = $('a').attr('rel'); // get anchor 'rel' ids
var...
I'm trying to use copy'n paste in one of my web apps and have read a few articles/SO questions about it. Most people say that using Flash is the only option since most browsers don't allow access to the system clipboard because of security concerns.
I can understand this but I wonder why it is okay for Flash do this, but not for the bro...
Hello!
I am stuck on the CSS part, am helping a friend to implement one thing on her webpage. Its a dropdown menu and i got everything working the way i want it to. My problem is that it moves itself to the beginning of the row?
http://gazet.se/TestPages/Test.aspx
How do i get it to be centered?
(I have removed the code that has been...
hi all,
we're building an survey webapp which will let the user to add new records to the survey when offline and will upload when the browser reconnects with the server.
We've identified that this will need offline storage and hence google gears seems to be an obvious choice (we understand that adobe Flash has Offline Storage but not ...
Quick question.
I have a js function which gets called on the page every few seconds. It's an ajax update thing.
Being a function, I declare local variables. I don't want to use closures or global variables for various reasons.
I'd never considered this, but do I need to release/clear the variables at the end of the function to rel...
Hello All,
I have been doing web designing for quite some time. My question is:
Should a web designer know JQuery at all?
Thanks
...
Hi,
I'm using CKEditor 3.2, trying to change the width and height of the ckeditor from javascript, i have used several methods, all unsuccesful:
// doesnt work 1:
CKEDITOR.instances.myinstance.width = 500;
// doesnt work 2:
CKEDITOR.instances.myinstance.width = 500;
CKEDITOR.instances.myinstance.updateElement();
// doesnt work 3:
CKE...
How to define a position (co-ordinates of left top corner) of an element relatively a browser window, instead of the document?
Crossbrowser compatible, pure javascript.
...
hi All
i am doing struts-hibernate application and i want to add a combo box in my jsp page dynamically , after i clicked the link on jsp page.is it possible to do the same using javascript?
please help me!
thanks.
...
I'm using TinyMCE which is on designMode = 'on', i have a disabled area where i dont want my user to drag/drop something on that area. I could disable the drop by listening to the mouseEvent.target and cancelling the event, on the drag however i dont know how to get the current item that i being dragged, i looked at originalTarget but se...