Need some help from javascript gurus.
I have one page where http://www.google.com/finance/converter is embedded inside IFrame. I am able to get the event notification whenever Google Finance page loads. Now problem is this that contents of this page is not accessible through javascript. It seems to be some security issue (firebug noti...
I have a web page that I use to update a fairly complex data structure.
The page itself has lots of information, so I developed some simple Tab-page control, with plain html.
Each tab is a different page, so when the user click on a tab a post is issued to the new page.
Fairly simply.
The problem is that the page has about 10 tabs, s...
Here is my code, for some reason it isn't working when I add the easing option.
It works fine with 'fade'.
<script src="jquery.easing.1.3.js" type="text/javascript"></script>
<script src="jquery.cycle.all.min.js" type="text/javascript"></script>
<style>
.pics {
height: 383px;
width: 582px;
padding:...
I've an img element with dynamically changing image. I always want to show this image in its full dimension.
So, I think, I've to dynamically change width and height attributes in img tag.
How can I do this in php or javascript?
...
Hello, I've been trying to create a client side editor which allows the end user to create content in html or markdown. The user has two tabs for switching between the two. I managed to find some javascript that converts markdown to html, so if a user has been writing markdown and switches to the html tab, the html equivilant is shown. I...
I have a list of thumbnails. When I click on a thumbnail, I want the image to load after half a second. Here's my code:
$('ul#thumbs li img').click(function() {
setTimeout(function() {
$('img#image').attr("src", $(this).attr("src").replace("_thumb", ""));
}, 500);
});
When I click on one of the thumbs, nothing happe...
Hello, i am trying to bind an event to a dynamically created div.
function GameField(playerNumber) {
this.fields = new Array();
this.player = playerNumber;
this.isPlayerActive = false;
this.currentRound = 0;
}
GameField.prototype.InitField = function(fieldNumber) {
var newField = document.createElement("div");
if (fieldNumber =...
Hi,
I try make a multi level accordion with jquery:
HTML
<div class="acordion">
<a href="#"><h1>aaa</h1></a>
<div class="acoTitulo">
<h1>aaa</h1>
<div class="acoSubTitulo">
<a href="#"><h2>bbb</h2></a>
<div class="acoSubSubTitulo">
<h2>bbb</h2>
...
Hello, im trying to pass two parameters to a function, "i" being an int value and "map" being an object. I'm using eval to inform Javascript that I am passing objects, however im getting the error "missing ] after element list".
I'm kinda new to this so I'm not 100% sure if this is the right way of doing things... but ya.. hopefully i'm...
Hi,
I need a random object generator in JavaScript that generates a variety of objects with different fields and values. Any ideas where I can find such tool?
I need to generate random objects with various complexity.. My goal is to use JSON in order to serialize these objects and fuzz test my application http api.
...
By highlight I mean the thing you do to text when you drag your mouse over it. If you use imgur.com then you know what I want. I can't find anything about this anywhere, it's frustrating. help?
Edit: Okay, I thought I made this clear enough but I guess not. I don't mean I want to change the background color on hover. That's trivial. But...
I'm working on building an iPhone app with Titanium Mobile 1.0 and I see that it compiles down to a native iPhone binary. How does this work? Seems like it would take a lot of heavy lifting to analyze the JavaScript code and do a direct translation into Objective-C without having a superset language like 280 North's Objective-J and Cap...
The site is: http://www.clubloc.com/
And it works in firefox but not in google chrome. Internet explorer also has problems but thats pretty much a given when using HTML5 Canvas.
Anyways I'm trying to figure out why it throws the error:
Uncaught Error: INDEX_SIZE_ERR: DOM Exception 1
When the arrays clearly have all those elements, I ...
Hi guys! Tried to make a little old school ajax (iframe-javascript) script. A bit of mootools is used for DOM navigation
Description:
HTML:
1 iframe called "buffer"
1 div called "display"
JAVASCRIPT: (short: copy iframe content into a div on the page)
1) onLoad on iframe triggers handler(), a counter makes sure it only run once
(th...
I was recently looking into Google Web Toolkit and it seemed really interesting. I was curious what can I really do with it, can I simple register and login system or similar things?
...
I have a page that performs an Ajax request that replaces a div every second.
This div also has hyperlinks in it.
If the user tries to click one of the hyperlinks, it will work, but if they move the cursor over the link, wait for a second without moving the cursor, the hyperlink no longer has the "hover" pseudostyle and if they click at...
I'm in the process of porting an app to JavaScript/CSS and it uses right-click. For some reason Firefox 3.6 for Windows isn't issuing a right-click event, but Chrome and IE do. Here's some test code. If you right-click #test then you get nothing in Firefox but you get an alert under Chrome and IE.
<html>
<head>
<title>Hi<...
I am using the rails helper observe_field to observe a the input of a textfield:
<%= observe_field :word_word, :frequency => 0.25, :function => "wordObserve('#{@word_str}')" %>
When the textfield input becomes a certain value, I would like to stop observing. I have tried both Event.stop() and Event.stopObserving(element, eventName, ...
I'm new to using regexp, can someone give me the regexp that will strip out everything but an integer from a string in javascript?
I would like to take the string "http://www.foo.com/something/1234/somethingelse" and get it down to 1234 as an integer.
Thanks
...
In ASP.NET, when you give a tag an ID it generates a unique HTML id for the element based on the control hierachy, ie.
<asp:Panel ID="test" runat="server">
...
</asp:Panel>
<!-- Becomes... -->
<div id="plc_lt_zoneContent_PagePlaceholder_PagePlaceholder_lt_test_test">
...
</div>
Is there some way of determining the generated id...