Hello everybody and thanks for taking your time.
I got an existing project where the main-page uses a horizontal accordion for the main content area from jQuery Tools (the Tabs element).
Now i have to implement a Tabs-menu (into one of the existing accordion pages) which is build with jQuery UI (the main container are Tabs and inside o...
hi,
i am getting the value "msg" from the the page:
http://www.kimi007.freeiz.com/frame.html
with the following code(this has to be entered in the address bar and then you hit enter, and then you get the alert message "success!":
javascript:(function(){var%20s=document.createElement("script");s.setAttribute("type","text/javascript");...
I've created a long form of multiple items that each have a checkbox next to them. What I want to do is allow users to check all the lines that they don't want, and then have scriptaculous use the Effects.Dropout function to get rid of all of them.
Is there an easy way to loop through all of the selected items and drop them?
...
Just a regular box, not too big not too small.
...
I need to get all the numbers that start with #.
"this is sentence 1 . Item number #4567 "
"this is sentence 2. Item number #8937 and #6723"
I am using JavaScript.
Using regular expression how do I get all the numbers in a string.
...
<a href="" onclick="runstuff();return false;">Item</a>
After executing runstuff(), I want to use JQuery to make Item bold.
Will I need an "id"? What about "self"?
...
I'm working on a flash gaming site, BeardedGames.com. I just recently implemented a "Panic" button that makes the entire site display: none and display: block's a iframe with a allowed in school website of the user's choice.
It works well so far, but the user's flash game still runs in the background while hidden. Is there a way to paus...
code:
google.load("earth", "1");
function gemap_init()
{
google.earth.createInstance('gemap', initCB, failureCB);
}
function initCB(instance)
{
try {
ge = instance;
ge.getWindow().setVisibility(true);
console.log(ge.getPluginVersion());
google.earth.fetchKml(ge,
'http://example.com.au/maps/example.kml',
...
I'm performing this on a string:
var poo = poo
.replace(/[%][<]/g, "'<")
.replace(/[>][%]/g, ">'")
.replace(/[%]\s*[+]/g, "'+")
.replace(/[+]\s*[%]/g, "+'");
Given the similar if these statements, can these regexs be comebined somehow?
...
So I'm trying to load a script dynamically and figure out the URL path at which that script was loaded. So some guy gave me a pretty awesome solution to this problem if the scripts are statically loaded ( http://stackoverflow.com/questions/2255689/how-to-get-the-file-path-of-the-currenctly-executing-javascript-code ). But I need a dynami...
I recently implemented a fix to create separate landing pages depending on whether or not the user has javascript enabled. Basically the way it works is this.
The default page is an HTML page w/ no javascript. Basic version of the site. Upon landing on it, there is a script that says if javascript is enabled then go to another page. Th...
Some code may say more than a thousand words:
/**
* Represents an amount of a resource
* @param {number} amount
* @param {string} type
*/
function Resource(amount, type) {
var nAmount = amount;
var sType = type;
if (amount < 0) {
throw new IllegalArgumentException("amount has to be positive");
}
/**
...
I think this is fairly straight forward but my skills lie in JavaScript and Ruby rather than flash so I want to run this past a few other minds :)
I have a flash file that will take pictures of the user via their web cam. I want to take that newly created image, base64 encode it then pass it to a JavaScript function. That JavaScript fun...
I am making an addon for both firefox and fennec and I want to know if it is running on fennec or not.
...
<script type="text/javascript">
$("a.filef").click(function(e){
alert('hi, it works');
return false;
});
</script>
<a class="filef" href="" rel="1">A</a>
<a class="filef" href="" rel="2">V</a>
...
I am totally new to JavaScript or jQuery. Actually I am developing a web application under which I need to access some data in url format and I want to display a small popup window on mouseover event on this url and on occurrence of this event, url will pass three different php data IDs to javascript. Then small popup window will get som...
I'm building a web iPhone app that involves changing the viewport on
demand with Javascript. I do this by changing the content attribute of
the tag. This works well most of the times,
except when orientation change is involved.
Everytime I try to change the viewport after an orientation change
event, the page doesn't zoom to it's ...
I calculated the wind direction and now I want to show the wind direction pointing to 144 degrees (on compass). How can I show this arrow on Google Maps?
...
Using the script off http://viralpatel.net/blogs/2008/12/set-maxlength-of-textarea-input-using-jquery-javascript.html I am trying to limit the input of a textarea to 1000 characters. Prototype is also included in the page.
It works fine in chrome, but in firefox the following error is given and the input is not limited:
$("textarea[ma...
i am dynamically generating a html page using php in which i am generating a dropdown combo which have attributes id and value, on selection of any option i want to get the value and id of selected option using js.
echo "";
while($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
echo "<option id='".$row['Id']."' value='".$...