I am attempting to add a javascript confirm dialog to either my linkbutton onclick event or my form onsubmit event.
Neither of them work as I receive an 'object expected' error from the browser.
frm.Attributes.Add("onsubmit", "return Confirm('Really do this?')")
How do I add a confirm dialog to the 'onsubmit' or 'onclick' events wit...
My javascript code as follows:
BBS.SO = new SWFObject("/Client/Css/sound.swf", "mysound", "1", "1", "8", "#336699");
BBS.SO.write('swfholder');
it used to work,but not now in firefox,but in iE it still works.
Is there such a bug with swfobject?it's a opensource project.
it seems in firefox3,there is a great delay when inserting suc...
When I attach an HTML file to an email and then email it to my iphone, I can view the file perfectly. However, none of the javascript in the file seems to run - not even simple stuff like showing / hiding divs triggered by "onClick" events.
Is there any way to make javascript run on attached files in the iphone mail application?
...
Hello,
I searched ExternalInterface but didnt got to know, how to implement it.
I want to run/execute a flash when clicked on an image element.
<img src="a.png" onclick="runFlash()" />
my Flash
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#...
$('#global').show("explode", { number: 50}, 2000);
I tried this code but it doesn't seem to work properly.
It looks like it's limited i never got more than 8/10 exploding blocks.
Are there a maximum ?
Any ideas ?
the explode effect is a native effect from the jquery-ui
...
Here is the basics of the schema... there is more than this, but this gives a good idea of what I need to accomplish:
<item>
<name>This is some product name to sort with dictionary sort.</name>
<price value="29.99">$29.99</price>
</item>
<item>
<name>This is some product name to sort with dictionary sort.</name>
<price v...
Hi i'm trying to use jQuery/javascript to make my life easier. I'm trying to use it to auto fill in the various html elements with the name of the place and country which comes from the file name of the image. Below is a sample of some of the html i have to work with:
<div class="boxgrid">
<a href="gallery/angkor - cambodia.jpg" title="...
how to move scroll bar by javascript ,
so that the top coordinate of visible area is y px from top coordinate of entire page?
...
sometimes i use debug code to alert something in javascript (for example, matching something in regular expression), but forget a modifier and and the alert is in an infinite loop (or if the loop matches the pattern 300 times). If using Firefox, the alert keeps on coming out, and there is no way to even close the tab, the window, or the...
I have a listing of home information in the format below.
<div id="content">
<div class="listing">
<div class="photo"><a href="#"><img src="img.jpg" width="200"></a></div>
<div class="info">
<p class="address"><a href="#">321 Main St<br>Beverly Hills, CA 90210</a></p>
<div class="attr">Price</div>
<div cl...
Can anyone explain why the alert() in the following JavaScript code is firing? It appears to be a bug in the RegExp.test() method which reverses its previous decision each time you run the method. I'm using IE7.
I've found a replacement that appears solid, using the string.search(regex) method instead. But, I'm curious whether anyone...
Possible Duplicate:
Is there a better way to do optional function parameters in Javascript?
I would like a javascript function to have optional arguments which I set a default on, which gets used if the value isn't defined. In ruby you can do it like this:
def read_file(file, delete_after = false)
# code
end
Does this work...
When using HTML custom attributes it doesn't works in Chrome.
What I mean is, suppose I have this HTML:
<div id="my_div" my_attr="1"></div>
If I try to get this attribute with JavaScript in Chrome, I get undefined
alert( document.getElementById( "my_div" ).my_attr );
In IE it works just fine.
...
Hi -
I have a 2.0 framework ASP.Net page that runs in our controled environment (IE 7).
The dialogWidth property seems not to be working. The scrip is as follows:
var win = window.showModalDialog ('Page.aspx', 'PopupPage', 'dialogHeight:600px,dialogWidth:800px,resizable:0');
The dialogHeight works fine but no matter what I change th...
I have signed up(paid) for Google site search. They have me a url of a sort of web service where I can send a query to it, it searches my site, and it returns XML of the search results. Well I am trying to load this XML via Ajax from a page on my site but I cannot. I can load from any of my pages on my domain so I am assuming it is becau...
I'm loading some HTML via Ajax with this format:
<div id="div1">
... some content ...
</div>
<div id="div2">
...some content...
</div>
... etc.
I need to iterate over each div in the response and handle it separately. Having a separate string for the HTML content of each div mapped to the id would satisfy my requirements. However,...
I need a javascript library to convert structured ascii text to html on the fly.
I am especially interested in the following point:
I would like do use anchored links inside pages, see http://www.w3.org/TR/REC-html40/struct/links.html#h-12.1.1
Which library for structured text would support this or if it is not supported could be easil...
I have a form that looks kind of like this:
<div>
<div class="contact">
<h1>Person's name</h1>
<!-- more stuff goes here -->
<form method="post" action="myurl">
<input type="submit" value="go" />
</form>
</div>
<div class="contact">
<h1>Another name</h1>
<!-- more s...
Right off the bat, this is not your standard "I can't get javascript IntelliSense to work in Visual Studio." For the record:
I'm using Visual Studio 2008
I have installed SP 1
I have installed the hotfix for -vsdoc.js documentation files KB958502
I am developing a suite of interrelated jQuery plugins to be packaged as resources in a...
I'm trying to create a universal function that I can call from multiple places to truncate long text recursively to fit a predefined pixel width - using jquery.
Here is the code...
function constrain(text, original, ideal_width){
var ideal = parseInt(ideal_width);
$('span.temp_item').remove();
var temp_item = ('<span class="temp_...