I have javascript code which alters the width of a specified DIV. It is attached to a button so each button click adds 50px to the width attribute. But when the page is refreshed on the browser the div attribute goes back to what it was originally.
This is the setWidth function:
function setWidth(){
jQuery('.tab_panel').each(function()...
Debugging 2 seperate bugs here but first thing is first. I have specified 2 fonts to be loaded from my server using google font loader, SilkScreen and SilkScreenBold, on firefox SilkScreenBold is loaded for me every time but SilkScreen is not.
http://junk.arandomurl.com/helicopter/test.html
Alternatively if anyone could give me a diffe...
I'm using the cool jquery airport plugin and trying to make it accept special characters (like accents, "&", etc.). By default it only works with a-z.
Has anybody found how to do that ?
...
In the javascript framework Dojo, is there an event that fires when the entire page loses focus?
If there is no event fired, is there another way to track the window losing focus? I want to be able to tell when someone clicks away from the page so that i can log the action (its an educational project, we're monitoring students actions ...
How would I go about displaying a tooltip when the user hover overs some text / keywords? This body of text is directly retrieved from the database so I am unable to add any span or div tags or title information to these keywords. Is there a way to automatically create tooltips for certain words that are contained in the page?
Please le...
I need to add a string before CSS elements with Javascript code. An example of the original code:
h1 {
background: red;
}
.class #id {
color: black;
}
I want Javascript to filter it like this:
.myclass h1 {
background: red;
}
.myclass .class #id {
color: black;
}
Let's say the CSS-code is a Javascript string called st...
Hi , I am new to PHP,
I need to have an date picker in my PHP form , where user can select date from calendar and it s value vl be on textbox.
How to do it in PHP, any tips..
...
For some reason I only get to the first option when I alert out below and then it exists my entire function. It never iterates through each option:
function SelectAlbumOption(iAlbumID, iAlbumDropdownID)
{
var dropdownID = '#' + iAlbumDropdownID;
$(dropdownID).each(function(index, currentOption)
{
...
It is good idea not to hardcode anything that may change in javascript. For example I want to have url generated by php.
I may write
echo "
<script ...>
var anUrl = $urlFromPHP;
</script>";
and then:
<script ...>
// some code
$.ajax({ url: anUrl ... });
</script>";
Is there any better way to do it? Does anybody know if...
I have a secure page. In Chrome when I pop-up pages from that secure page, it displays an exclamation mark in both the parent and child address bars.
When viewed on it's own the child page shows as secure (no exclamation mark) according to Chrome.
How can I have popups from my secure page, and not induce these exclamation mark warni...
Hello All,
I am populating a table in my jsp which has more than 20 records. Now, If I want to display each 10 records in a page and then the user clicks on next link to go to the other 20 records.
How can I do that in my jsp?
This is my current code
<table>
<tr>
<td>id</td>
<td>name</td>
<td>type</td>
...
Hello,
I have a page with several div's. All of the divs have a unique id. I would like to send that id to a javascript function. I have tried to save it as a value as well, and send this.value, but that does not work either.
<div class='recordElem$val' id='$rname' value='$rname'
onclick='javascript:updateRecord(this.value);'>
...
Hi,
I am trying to bulk disable all the submit buttons present in my form. I am getting all the buttons using the following jQuery
jQuery('input')
This returns me an array of the Input tags. I can iterate through this and disable each and every one of them. But is there a better way to perform this operation. Something like,
jQuery(...
I have a link button that I want to change it onclick callback function when clicked:
I am using .attr() to change the onclick event but it simply doesn't work.
$('#' + test).text('Unlike');
$('#' + test).attr("onclick", "return deleteLikeComment('"
+ CommentsWrapper + "','" + activityID + "', '" + test + "');");
But it simpl...
I am trying to open a file share link from the window.open ....... but its adding the http://localhost/vdir/ before the path can any one say what is the problem?
...
Hello all
I've the following URL
http://somesite/somepage.aspx
I pass a query parameter value which has another URL with query parameters like this.
http://somesite/somepage.aspx?pageURL=http://someothersite/someotherpage.aspx?param1=value&source=http://anotheronesite/anotherpage
I need to get the pageURL value as the one in th...
Designer here, trying to code.
I am almost there! Trying to get a drop down menu from dynamic drive to work over an jQuery image rotator. Played with z-index. I can get the menu to work over the image rotation on all browsers except in IE compatibility mode, cannot click on the buttons in the rotator.
http://local495.bigrigmedia.com/
...
i am creating login code for facebook connect on our site,
however i cannot find how to check if the user has the required permissions.
with the old javascript, one dialog would be opened for each permission and the return code would say if the permission was accepted or not, how does it work with the javascript code?
here is the code ...
Is it possible to tell if scroll lock mode is currently on through javascript without capturing scroll lock key press event (key was pressed outside of the browser)?
...
I was experimenting around with XPath, basically I'm trying to load a HTML page using XMLHttpRequest and select an element inside it from its XPath.
Here's my code (Greasemonkey/Js):
GM_xmlhttpRequest({
method: 'GET',
url: url,
headers: {
'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
'Accept': 'application/atom+xml,app...