I am dynamically creating a hyperlink in the c# code behind file of ASP.NET. I need to call a JavaScript function on client click. how do i accomplish this?
thanks in advance
Hi all,
I am developing a small facebook application.
In my application I need offline_access and email permission. I've been succesfully prompting the user for permission using
FB.Connect.showPermissionDialog("email,offline_access");
But what I really want to do is prompt the user with a require permission dialog, not request.
Does anyone know how to do that in javascript?
Thank you very much!
Hi,
I would want to dynamically get the DOM structure (HTML source) of a web page. I want to do some manipulations with it later. Is this possible in javascript at all?
Thanks.
I have a JS app that an user interacts with. I need to save the appearance of the interface at the current time, crop out the part that I need (or only shot the part that I need by specifying the div), and send it back to the server.
Clearly any external services would not be able to do this, I need a javascript (or flash) script that can save the screen appearance. Is this possible?
Thanks.
Also, as the comment below says, I cannot use Active X.
Please, I have another simple question for experienced programmers.
Is it possible to get source code of any webpage with javascript at client side?
With AJAX maybe?
But I need that the server I am downloading the url from does see the IP of the client.. with AJAX it will show my script server IP, right?
Thank you in advance.
I d like to execute a remote javascript which redirects the user to another page on my domain with data that s passes as query string. I want to get this data which is passed on to the page on my domain.
$.getScript('http://site.com/foo.js', function() {
**//foo.js redirects to another page on my domain with data
// and i d like to capture that data from this function,
// at least if i find the parameters that passed on there, i ll be fine.**
});
What to do ?
Hi All.
I can't find great way to debug javascript. I know firebug on firefox, but it's not best way I think. I want to put break point and trace program but I can't with it.
Do you know good tool or how to trace the program.
The following script returns 20 instead of 21!
var d = new Date("2010/03/21");
document.write(d.getDate());
What am I doing wrong? Is this a JavaScript bug?
text = text.replace(/\.(?=[a-zA-Z0-9\[])/g, "<span style='background-color: #FF00FF'>.</span>");
I want to use javascript to highlight all full stops that is followed by letters, numbers and [. The above expression works for letters and numbers, but not bracket. Any idea what's wrong?
Hi Guys,
Is there a javascript library the can recognize phone numbers in a web page? Just like what skype did on their firefox plugin.
Or do you know a way on how to do it? Websites or any tutorial that do the same would be very helpful.
Your reply is greatly appreciated.
Best,
In Javascript, how do I get the number of weeks in a month? I can't seem to find code for this anywhere.
I need this to be able to know how many rows I need for a given month.
Thanks for all the help.
If I create a cookie in Javascript document.cookie = 'unseen' how do I delete it when I navigate away from this page? This is the only cookie I am creating on the page.
Hi,
is there a way to convert a javascript HTML object to a string?
i.e.
var someElement = document.getElementById("id");
var someElementToString = someElement.toString();
thanks a lot in advance
as mentioned on this site
Note that while JavaScript files are
not reliably cached by browsers, CSS
files are.
http://www.websiteoptimization.com/speed/tweak/http/
I have a page where in a photo and description link is there, i want replace the hard coded link with a javascript,which will add them,as i dont want the search engine to scroll the links.I dont wanna use "nofollow" attribute.How to code it in js.
Is there a way to show the structure of a javascript class declared using Prototype's Class.create function in the Eclipse outline view?
The declarations look like:
var Foo = Class.create({
bar: function() {
...
},
baz: function() {
...
},
});
At the moment all I get is "Foo:".
(A google search turned up http://marketplace.eclipse.org/content/prototypewtp, but the link to the plugin homepage is dead)
Hi,
Do you know any Javascript Tree Creator that lets you add or remove nodes up to 3 levels deep?
I'm currently using the jQuery treeview but is currently coding the add and remove of node items which is hard.
Cheers,
Mark
Hi all,
I found this article http://wiki.developers.facebook.com/index.php/Talk:Dashboard_API
but for the love of me, I cannot understand how to use javascript in order to call the dashboard api. Does anyone know if it's possible?
Hi,
I wonder if it is possible to create combo box as in the picture below. The aim is that the actual text of the combo (select in HTML) would be different that items' texts that are displayed while the combo is opened.
The application is written using Google Web Toolkit so any solution in gwt or HTML/JavaScript would be great.
Thanks for any hints.
Hi all,
How does something like this work without Flash?
http://www.dirtyphonebook.com/dashboard/425-205-1921
I right-clicked on it but there's no Flash menu. I love Flash because its stable and works. But is using some sort of Javascript hack for this kind of complex behavior actually a good idea?
I know in jquery it is possible to call the javascript/jquery onload()/load() functions on, for example an image (<img>).
However, if in jquery if i use .html(htmlString) to insert an image after the dom has loaded, how can i add a listener to handle the images onload event? Is there a property I can check to see various images and if they have loaded?
Is it possible to simulate a click on a webpage using javascript but without defining a specific element, but rather just specifying the document?
I would have liked to do something like this, and if the location happens to have a link, then this will be pressed:
function simulateClick(x, y)
{
var evt = window.createEvent("MouseEvents");
evt.initMouseEvent("click", true, true, window,
x, y, x, y, 1, false, false, false, false, 0, null);
window.dispatchEvent(evt);
}
Which JavaScript library is nowadays the best to use if you want to use the Comet Bayeux protocol on your website.
Definition of best for me:
Well documented and good examples !important
Nice coverage of the different functionalities of the protocol
Ease of use