Hey,
Im using the xulrunner example application and im trying to work out how to call into c++ code from javascript. I have googled and the best i came up with was to use nsIDOMEventListener interface but have no idea how.
Any ideas?
...
test.html:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd"
xml:lang="en">
<head><...
I am trying to convert a querystring value into Javascript date object and then converting it into ISO Date format.
I have three button - one extracts the querystring and displays the value - works properly
Second, uses first function to extract querystring (works) and then converts to Date - fails - get NaN
Third, passes a hardcoded st...
Hi
I have a web page. It has too much height; in that page I have a div in the bottom of the page. I want to display the div in the center portion of the page. It’s appearing in the center of the page at the bottom position as in a way i like , but scrolling is needed. Is it possible to set focus on that div without scrolling? Does any...
ASP.NET Ajax, has a dispose pattern by having a IDisposable interface which let you free up the resources.
How the freeing up of resources should be done in jQuery? Is there any similar pattern?
How / when the dispose function is invoked by the ASP.NET Ajax library?
Do we have to worry about memory leak if the page will be reloaded af...
How might I add a JavaScript message box with a confirmation option in ASP.NET?
...
Hey,
If I have a bunch of links like this:
<a href="foo.com">blah</a> and this <a href="example.com">one</a> and here is another <a href="foo.com"></a>.
How would I add a class to all the links that link to foo.com?
...
I am pulling my hairs out over an invalid argument error in IE7, maybe all IE's...
The site is: http://www.karencaldwelldesign.com/fashion
IE says it is an error on line 12, but if I open up Script Debugger it says the problem is with some code in jQuery. I don't buy that.
So, I looked at my script (http://www.caldwellsnyder.com/__da...
I've created Ext.Window with some Ext.form fields inside. But when I resize window form elements still have initial width and height.
Is it required explicitly resize form fields on window resize? Or there is some option that enables auto resize of form fields?
Sample code:
var f_1 = new Ext.form.TextField({fieldLabel: 'Label 1'});
va...
This question isn't limited to people who know AppleScript, if you do Cocoa, etc., you should know the answer to this:
I'm making a droplet in AppleScript that compresses JavaScript files, so obviously, I only want JavaScript files to be allowed into the scripts. Any ideas?
Thanks so much.
...
I am trying to use Javascript to intercept keyboard events, so I can do CMD-W for "close-window" and whatnot, inside a Flash application, so the Browser doesn't get to use them.
Well, I am able to listen for ALT, CTRL, and CMD onKeyDown/onKeyPress events, but I am not able to listen to anything else... Here is the code, in the index.ht...
Hi all...
I need a reference on how to make 2 pages become one.
Originally i have 2 php pages. View.php and comment.php
The view.php will have a link to call comment.php. When click the 'comment' link, it will open comment.php like pop up. After fill in the comment, and click send, it will closed and return the view.php.
The problem...
http://losangeles.kijiji.com/c-SelectCategory
That page's search menus on upper left.
Best with jQuery.
...
Hi All,
I am trying to pass variable though the GetDetail function below, i can pass string/number it works properly
but unable to pass variable
detLink.onclick = new Function ("GetDetails()");
detLink.setAttribute('onclick',"javascript:GetDetails()")
regards
hemant
...
How can comet be used with Flash programs?
What will be needed at server side for the same?
Does this require any customised servers or will normal IIS or Apache do?
Also is Juggernaut an example of flash
based comet? how does it achieve comet?
...
Hi,
I have taken three textboxes over aspx page. A javascript function is associated with these textboxes as-
TextBox1.Attributes.Add("onkeypress","MyFunction()");
TextBox2.Attributes.Add("onkeypress","MyFunction()");
TextBox3.Attributes.Add("onkeypress","MyFunction()");
The MyFunction() is defined within a javascript file.
What I...
Hi guys,
I wan't to register the OnMouseOver and OnMouseOut-Event for an Image from the Code behind, because I must different if the user is logged in or not.
Any ideas?
...
This macro should activate tabs in sequence from 1th to 5th and then again.
But there is something wrong. When you open 5 tabs, activate first of them and run this code in iMacros firefox extension, the 3th tab never is activated:
//imacros-js:showsteps no
var x=1;
while(true)
{
iimPlay("CODE:TAB T="+x+"\n");
alert(x);
x=x+1;
...
How can I export an HTML table in my page as PDF and/or XLS? (preferably using JS (+jquery))
...
Hi all,
I have these hyperlink which will jump to anchor tags in UL some where
<a href="#A">A</a>
<a href="#B">A</a>
<a href="#C">A</a>
<ul>
<li><a name="A"></a></li>
<li><a name="B"></a></li>
<li><a name="C"></a></li>
</ul>
This is to make sure I jump to the right alphabetical letter in the list (which is long and will have scrolle...