I am using
function BlockMove(event) {
event.preventDefault();
}
&
<body ontouchmove="BlockMove(event);">
This is making my page unscrollable, which is perfect. It stays in place. But I need the user to be able to zoom into an image on my page..
Any help would be great
...
So I have an element I want to modify (with Fx.Tween, but I suppose it doesn't really matter). However, the element id is dynamically generated, meaning I have to piece it together from some variables.
So let's say... (in js)
name = 'foo';
id = '42';
and I want to access element $('foo_42')... how would I type it out?
$(name+'_'+id)...
What JavaScript has to be written for a popup when a link is clicked? Correct me if there is anything else to be done.
Link is written like this.
<div style="float:left; padding-left:9px;">
<asp:LinkButton ID="lnkActiveInactive" runat="server" OnClick="lnkActiveInactive_Click"
CssClass="linkclass" Font-Underline="True">Cance...
Hi there!
I load a bunch of HTML from the server containing img-tags. I need to parse this response (I need only a small part of it) and find a few particular tags.
Problem is, as soon as I throw the response into jQuery to parse it, the browser loads all contained images. This is partly unnecessary (I don't need most of them), but the...
I have a list of countries, html, they have numeric ids and country name:
Ex:
<select name="userDto.nationality" id="userDto.nationality">
<option value="">Seleccione</option>
<option value="1">Alemania</option>
<option selected="selected" value="2">Argentina</option>
<option ...
Hi, i have a "wall" on each profile, and i wish to make it smarter, so you don't need to update the page to view your inserted message you just put up.
When you insert a message, it makes a ajax call and inserts to the database, and you receive a message about it has been inserted. But right now you need to refresh the page to see your ...
I am using a tabpanel with two panels, where I am retrieving data through JSON. Retrieving data in the first tabpanel seems to work great, however, I can't parse the data retrieved from the JSON in the second tabpanel. Any ideas?
var registrationformPanel = new Ext.form.FormPanel({
frame:true,
border:true,
labelWidth: 125,
...
Hello.
I want to make a script that is changing toggle link text depending on others element visibility.
So while #form is visible I want the #form-container a text to be "Hide...", and while it's hidden I want the text to be "Show...".
I've tried this line - if($('#form').is(":visible")){ another way: if($('#form').is(":visible") == ...
Hi there,
I've been researching about Flex and it seems that it's possible to use JavaScript to interact with the Flash component. What I would like to know is if there are any security issues when doing this versus just building everything within the SWF?
Thanks
...
I want something that the webmaster can copy into his site.
It just needs to have my logo, a text box, and a submit button. (When the user clicks submit using that widget, it forwards to my site.)
I know there are many ways to do this. What is the fastest and easiest?
...
Hello!
I'm looking to write a function which resizes an IE {7,8,9} window using javascript. The input to the function is the desired size of the rendered webpage (so IE's window without status bar, borders, scrollbars, etc.
Calling foo(120, 100) should result in a rendered web page which is exactly 120px by 100px.
This was my first e...
How would I go about inserting line breaks in the value of hidden fields?
For ex. this is how my hidden field looks like:
<input type="hidden" name="dahidden" value="<%=da.getFname() %> <%=da.getLname() %> <%=da.getEmail() %> <%=da.getPhone() %> <%=da.getExt() %>">
I need to insert line breaks after da.getLname() and da.getEmail().
...
I'm laying out a tabbed UI on the side of a webpage, and I've done the whole thing using percentage values for height/width of tables, divs, and trs.
In Chrome the page looks correct, but in firefox, a certain table seems unaffected by the setting for its height and extends off of the page.
What could be happening here?
Update: I ...
I want to learn a nice easy to use versatile language. I do know some Java, but is it relevant? Or should I move on too JavaScript with the advent of HTML5?
...
I have an HTML document stored in a file, with a UTF-8 encoding, and I want my extension to display this file in the browser, so I call loadURIWithFlags('file://' + file.path, flags, null, 'UTF-8', null); but it loads it as ISO-8859-1 instead of UTF-8. (I can tell because ISO-8859-1 is selected on the View>Character Encoding menu, and be...
I'm using the following to capture Touch Events on an Iphone.
document.addEventListener('touchmove', function(event) {
event.preventDefault();
var touch = event.touches[0];
$('#touchPosition').text("Touch x:" + touch.pageX + ", y:" + touch.pageY);
}, false);
Strangely, I'm finding that the positions are wrong...
Hi all,
Suppose I had the following function:
function alertMesg()
{
alert("This ok function alerts message!");
}
Now at run time I would like to change the alertMesg function to do something else. My thought was to do somehting like this.
var temp = window.alertMesg.toString.replace("ok","great")
temp = temp.replace('function a...
Hi,
I remember using a JavaScript in-browser editor a while back but cant remember the website despite doing numerous Google searches.
The website in question has two large grey buttons at the top left named on the lines of "code" and "preview" and the rest of the page is used to write/view code.
...
I'm looking for some comprehensive list of web browser compatibility with various versions of standards like javascript, CSS, DOM, HTML..
I know about quirksmode.org, but I'm hoping there are other good resources as well.
...
The alert statement alert(parseInt("0x00C02700010004E9",16)); incorrectly displays 54086076498707690 instead of the correct value 54086076498707689. Please notice the last two digits!!
Could anyone shed some light on what am I doing wrong?
...