I have an .aspx hidden control that stores a defaultId for this dropdown. However, the values in the dropdown can change and sometime the defaultId is listed as one of the selections, other times it isn't. When the drop down clears we run this to reset it:
Global.getComponent("ddlVehicleType").setValue(Global.getComponent("DefaultVehicl...
I have this code:
$("#SidingPainting").hover(
function() {
$(this).addClass("ui-state-hover");
},
function() {
$(this).removeClass("ui-state-hover");
}
)
however I have many, like a hundred divs that I want to apply these same functions to!
Is the...
Is there an easy way to show the size of an aspx webpage in bytes (i.e length not screen size) - to save clicking File..Properties in the browser.
Possibly some javascript method, or a way of getting it from the Response object perhaps?
...
I have this code i would like to know if there is a shorter way of writing it?
also which code do i need to make an active tab stay active when on the relevant div
thanks
$(document).ready(function () {
$(".overveiw").click(function () {
$(".div1").show();
$(".div2").hide();
$(".div3").hide();
$(".div4").hide();
...
Hello,
I really liked the SubSonic 2.2 calendar control. It is a .Net implementation of the old Dynarch calendar found here.
So I did what any developer would do and I swiped all the code for the calendar and put it in it's own library.
Unfortunately the calendar does not play nice with an update panel.
I got help here for getting the...
I have a circle on the a map that I need to update, here is one way to do it:
circleopts.radius=100*distance;
// delete old circle overlay
circle.setMap(null);
// create new circle overlay
circle = new google.maps.Circle(circleopts);
// display new circle overlay
circle.setMap(map);
For some reason I don't find this very elegant. Is t...
hello,
I define a link <a href="http://www.example.com">Hello</a>.when i click this link javascript should check the link is exist/valid.if true,the page should be load or the page should resirect to another page.i am using javascript ajax to check the page exist/not.i am using the condition xmlhttp.status == 200.But it is not w...
I want to find the best way (using javascript) to check the spelling of an iframe content based on the results that will be returned by the 'hunspell' spell checker.
scan fast word by word the iframe content
add a red underline style for each misspelled word that would work fast for the entire iframe content
remove the spans when the u...
Hello,
I want to simulate a couple of clicks. A 'Save' and 'Cancel' anchor clicks.
I have this as my enter simulation
$('.group').live('keypress', function(e){
code = e.keyCode ? e.keyCode : e.which;
if(code.toString() == 13){
$(this).find('a.saveChanges').click();
}
});
and this as my esc simulation
$('.group'...
I need to create a page for a website that needs to have the latest video featured (biggest display) from my Youtube channel. Underneath the featured video, I'd like to have the rest of the videos in my Youtube channel displayed horizontally in rows. Whenever I add a new video to my channel, I'd like the video to show up automatically in...
What I would like to do is disable the snapTolerance the right and bottom sides of a JQuery draggable object. The following code seems to control the snapTolerance of draggable objects when I set snapMode to 'inner'.
My initial thought is to override this portion of the code somehow but, I don't know how to do the override. Or, perhaps,...
To hide the true destination of a link I'm using the following code:
<a href="http://example.com" onclick="window.location='http://url-i-want-to-hide.com/'; return false;">Click me</a>
However, if I do right-click and then open in new window, it goes to the url specified in the anchor href tag. I want it to go to the url specified in ...
In mootools I use the Request.JSON(options).get(); to send a request to the server.
Options is:
{'onSuccess':function(){alert(1)},'url':'https://192.168.12.219/reports/get/favorite/details/?report_id=7'}
the url I am in is: https://192.168.12.219/reports/container/
So I do not see any issues with cross domain (this code works perfectl...
Hello StackOverflow,
I have a working PHP script on my server and a HTML page with JavaScript and AJAX which I would like to call and run the PHP script. However, the AJAX responseText is displaying all the PHP code rather than running it. What do I need to do to only get the results of the PHP? Other examples I looked at used the re...
I have an aspx page that is getting an Object Expected javascript error on submit, but when you break into the error the breakpoint is somewhere in the middle of the __VIEWSTATE input html element.
A javascript stack dump shows just "{anonymous}(null)".
What does this mean and how does one go about debugging further?
...
Can someone try this and see if it works for you. I can't figure out the problem.. Maybe I have a conflict somewhere. Using jquery.
Thank you so much for the help.
<script type="text/javascript">
$(document).ready(function(){
$('a').mouseover(function() {
switch ($(this).attr('class')) {
case 'nc1':
new_content = 'Twit...
Ok I have some custom Omniture code I need to add to a Drupal site. All is good as I have added the Javascript code to the themes template page. The code shows up on all the pages as expected but I have a couple of PHP variables that I need to print in the Javascript that are coming up blank.
<?php
$omniture_event = "test this work...
Guys,
Here is my website : http://searchr.us/web-search.phtml
So now,once anyone searches in that page it comes like this :
http://searchr.us/web-search.phtml?search=SEARCHED+TEXT
So now what i want to do is that when a person searches anything for that matter.A page with its title called
http://searchr.us/web-search.phtml?search=S...
Hello Everyone,
I have an AJAX Function that calls a PHP Script and displays the result on a page.
So, i have two pages, say:
form.php - This is where the Input is gathered and displayed
process.php - This is the php that is called and result from this is displayed on form.php
Now, here is my AJAX Function:
function showList(str)
{
...
What are some of the common Javascript and/or jQuery "gotchas" that you have seen or been tripped up by?
As an example, it was pointed out to me this morning that you have to be careful with the radix when doing parseInt(), because if your string starts with a 0, the radix will default to 8.
...