I've got a little problem with calling javascript functions via liveconnect on java. It's not calling the function with the proper items, as the Safari console just classes the objects as "RuntimeObject" but in javascript i use:
chat.call("message", new String[]{ action, data });
arguments action and data are not being forwarded as pr...
I'm planning on throwing together a quick web page for my students to teach them about JavaScript programming. On this page, I'd like to give them a text box and allow them to run JavaScript so that they can see the dynamic nature of the language at work. However, I'm well aware that using eval() on user input is usually a really bad ide...
Hi
I am trying to send user to previous page history.go(-1). This works fine in Firefox but fails in IE
ERROR:
Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your informat...
I'm writing an ASP.NET webpart for use in a SharePoint site and trying to use an UpdatePanel to render query results. I want to use a JQuery plugin to modify the table returned from the asynchronous postback, but I'm having trouble getting the startup script to execute on the asynchronous udpate.
I found this post which indicates tha...
The code:
<div id="Navigation"
onmouseover="new Effect.toggle('Drop_Down','slide',{duration: 0.8});"
onmouseout="new Effect.toggle('Drop_Down','slide',{duration: 0.8});">
<div id="Drop_Down">
<% include Navigation %>
</div>
</div>
If I mouseover the Navigation the Drop_Down div slides down, and if I mouseout ...
I have a form, this form has a submit and a cancel button. when you press submit the following jquery will run:
$('#saveAction').click(function() {
// call validation function in javascript
});
and when cancel is pressed
$('#cancelAction').click(function() {
return true;
});
the reason to do this is ...
This is what is being passed (as seen by PHP), which is a little jacked up:
[action] => AddDailyDeal
[addDailyDealFormProductTitle] => Gatorade 20 oz. bottle
[addDailyDealFormPrice] => 1.23
[addDailyDealFormShippingCost] => 4.56
[addDailyDealFormDealURL] => http://www.dealurtl.com
[addDailyDealFormTrackingImageURL] => http://www.trackin...
am using autocomplete extender list ( ajax toolkit ). When number of items returned are more than 10 I want to show message as "more.." with red color at the end of list. What is simplest way to style last element of the list returned from service.
...
I know zero javascript, and have one simple task:
Find all text in the current html of the form [[.+?]]
Extract the content of the brackets
Replace all space characters with underscores
Instead of the entire expression, output <img src="foo.com/$1.jpg"/>, where $1 is the matched text (after spaces have been replaced).
(This should be d...
I'm trying to run a regular expression on some href tags using javascript.
Unfortunatly reverse possitive lookup doesn't work in javascript :-(
I want to prefix all the relative tags with their full path.
I am using this regex-replace patern ([hs]r[ce]f?)[\s]?=[\s\"\']?(?!http|\/)(.*?)[\s\"\']
<Sorry, as I'm unable to post my HTML sa...
I just noticed that say
http://s7.addthis.com/js/250/addthis%5Fwidget.js#pub=PUBID
does the equivalent of
http://s7.addthis.com/js/250/addthis%5Fwidget.js?pub=fct-250
but is much faster. How does that work? O_o
I'm including the above links in a < script src call. Its supposedly faster according to one of the addthis developers. ...
For speed purposes, I'm trying to decide whether to place my JavaScript in the <head> or just before the </body> of my site. I prefer the head and am not concerned with the extra HTTP request, just the behavior of this script.
Here are the two code snippets, which are loaded back-to-back (Google Analytics):
Script 1:
// Loaded externa...
According to Telerik's documentation, to set a RadDatePicker's mindate or maxdate properties client-side, you are to use the two methods set_minDate() and set_maxDate() respectively. I initially thought that simply passing in null into these methods would remove any constraints on the controls, but it does not seem to be the case. Does...
I am looking for information concerning a proven process to interrogate the current user's client, and perhaps benchmark a code piece, to determine how effectively the client is executing certain types of code.
Obviously writing code as efficiently as possibly is the constant goal. However certain features and effects tend to degrade th...
Hi,
I am attempting to use XMLHTTPRequest to get an update on twitter.
var XMLReq = new XMLHttpRequest();
XMLReq.open("GET", "http://twitter.com/account/verify_credentials.json", false, "TestAct", "password");
XMLReq.send(null);
However, using my sniffer I cannot see any authorization headers being passed through. Hence, I get a 401...
Are there any tools (frameworks) to create web based layout desinger (something like in Visual Studio, but with html and javascript) - with drag and drop, ability to combine several html tags into one control, changing "control" properties on the fly (e. g. width, font, etc) and exporting layout into html (xml)? Looked at jQuery and ExtJ...
Hi,
I am looking to add, via javascript an item to the right click context menu on a website, how do I do that?
I have been looking around the web but have found nothing, so if you have a link to a good article that would be great.
I also know there is some compatibility issues with Opera but I am not worried about that right now.
Th...
I am using dojo 1.3 and having problems getting this dojox.grid.DataGrid working. I am sure it is my ignorance. I have been reading over the Dojo Campus examples and beleive I have right. My html looks like:
<script type="text/javascript">
dojo.require("dojox.grid.DataGrid");
dojo.require("dojo.data.ItemFileWriteStore");
</script>
...
Hi, I'm pretty new to javascript, so bear with me if this is obvious.
Basically what I would like is to implement a little interface where when you type something in a textbox it gives an event. Sorta like how this stack overflow post preview works. I tried hooking into the OnChange event, but that only gives an event when they are done...
Hi,
I'm trying to create a gadget for win 7, that retrieves the RSS feed from a site. So far so good, everything works fine, just that I want to add something extra. The gadget so far extracts the link from the feed and stores it in a variable named 'articlelink', the link is usually something like "h*t*t*p://site.ro/film/2009/brxfcno-/...