Hello,
I have a RewriteRule in my site and it's working fine but 1 part of my javascript doesn't work.
<a href="#" onClick="check('1')">Click</a>
<div id="1" style="padding: 5px; display: none;">
MyText
</div>
normaly i had www.mysite.com?page=home and when i click it work like www.mysite.com?page=home#
but with the RewriteRule...
I'm using the following code to insert extra form fields.
function addFormField() {
$("#divTxt").append("<div id='education" + id + "'><input name='name' id='name' type='text' size='20'><a href='#' onClick='removeFormField(\"#education" + id + "\"); return false;'><img src='images/minus.gif' width='10px' border=0></img></a></div>");
}
...
is there anything like (1==0 ? "no" : "yes") in javascript?
...
I'm creating a webform that has combos containing 100 values or so. The values are the same.
The form may have several records. So if there are 100 records there are 10,000 lines which seems pretty wrong from a "download" point of view.
The thing is: I want to keep that combo dynamic to keep the id from the database.
So I came up t...
The following code works fine in Firefox but in IE the link is never called, the exception is called with a rather generic [Object Error]
var GoalID = "e13e68a8-ae18-49f1-9d2f-e052a63fac51";
try
{
$.ajax({
type: "GET",
url: "http://www.externallink.co.uk/GoalAccessed.aspx?id=" + GoalID,
dataType: "script"
});
}...
Hello,
Do you know how to check whether the mouse is over an element?
Somethnig like this?
setTimeout(function() {
if($(this).mouseover()) { // this not work
return false;
} else {
$(this).hide();
}
}, 1000);
Thanks.
...
I'm getting used to this toolbar, it is so cool to edit the page on the fly and see what I'm changing...
THe only problem is that my JavaScript stops to work after (or while) i'm editing, and I need to save an refresh the page... Did I miss any option? Is there any other tool that does this?
...
Hi,
Recently I've discovered asp page methods. Little web service type calls.
Though I'm left wondering, what are page methods really good for? I was thinking validation of form data on the server, eliminating the need to double up on validation on both client and server.
But in the real world, what can they be used for? Should they b...
Programming an iPhone App, I need to use Google Maps api to get directions and routes. Unfortunatelly, Google Maps works around javascript.
Any idea how to do this?
...
I'm using modal, modeless divs (I mean fixed, styled divs) on my HTML page. This page contains iframes with modal divs as well.
When I open a new div on the page, I need to disable keyboard events on the parent page (opener page). Also I need to be able to handle tab key presses on the parent page.
I have Googled, but I haven't found ...
I'm trying to use GLatLngBounds to make all the markers on the map visible. Below is a small example of what I'm doing.
INV.createMap = function(containerId) {
var map = null;
var geocoder = null;
var bounds = new GLatLngBounds();
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById(containerId)...
Hi,
In Fusion charts 3.0 they have option to save the graph as PNG. But it is only for licensed users. But they don't have that option for free users. My requirement is to save it as an image somehow. Is it possible in the free version. To achieve that what am I supposed to do. Is there any mechanism ( 3rd party tool ) to convert flas...
I am using JavaScript to create a modal window when a user either clicks a link or submits a form. The modal window holds either a form if they click a link or a thank you page when a user submits a sign up form. The modal window is populated using innerHTML.
The issue I am having is that these modal windows have Google Analytic tags in...
Hi there!
How do I execute some Javascript that is a string?
function ExecuteJavascriptString()
{
var s = "alert('hello')";
// how do I get a browser to alert('hello')?
}
Many thanks!
...
How do I change the border of an image map(on mouse over) that i have placed over a part of the image
...
There is a JSLint option, one of The Good Parts in fact, that "[requires] parens around immediate invocations," meaning that the construction
(function () {
// ...
})();
would instead need to be written as
(function () {
// ...
}());
My question is this -- can anyone explain why this second form might be considered better? ...
I'm using Silverlight.CreateObject to create a silverlight object dynamically. when silverilght is not installed it shows its own patent image from microsoft. I want to replace this image with mine...how can I do this??
...
How would you go about executing a Javascript function when the page is fully rendered (Displayed) I know that the onLoad event executes when the page is loaded but Before it's rendered.
I've previously solved this problem by using a timeout with a 0 interval, which seems to work usually, but seems a little inelegant to my delicate sens...
The issue I am having is when the function is called multiple times for different elements. I believe I need to localize all of the variables such that this function can be used against multiple elements. In case it matters I also call in jquery 1.3.
If I only call pageSlide once, everything is fine, but once I call it multiple times i...
I need a way to load multiple style sheets with the same rule names, and then apply them to different elements on a page. Is this possible?
Here's an example of something I'd like to do. Take the two style sheets below:
style1.css:
.size{
color: #FF6600;
font-size: 18px;
}
style2.css:
.size{
color: #FF0000;
font-size: 14px;
}
...