I have a DotNetNuke site which lets me add pages. I can edit the HTML of the page.
On the page I need to display a price in one of three currencies depending on the user's location. Those currencies are USD, GBP, and EUR.
The price in each currency fixed, so there is no need to do any currency conversion.
Additionally I'd like to displ...
I have two input fields say val1 and val2 in jsp.Let say val1 is dynamic, I need to restrict user entering the value of val2 not exceeding val1. It can be equal but not more. I tried with onKeypress but i was not able to success. Val1 value can be get from document.getElementById(..).value. Can anyone tell me the efficient way to do this...
When I use fancybox for iframe, the loading icon isn't displayed while fancybox is loaded...
How can I fix this problem?
Thanks in advance.
...
Hi am creating one e commerce site.And when i click on the image in the product i want the this kind of effect like in this site.http://www.mightyleaf.com/indian-tea/organic-darjeeling-estate-black-tea/.In this page for example if i click on the product pop up window comes up with large image of the product and the other related image of...
Just now i'm writing a project, and i desided to write it with jquery and ajax requests.
only thing, i don't know, is it secure enough?
for example, when i verify the username, when registering new user, i use jquery ajax request,
i get the array of existing usernames from db(with json), and then verify, if new_username not inArray() ...
Hey all..
I have this code, loading XML documents on mouseenter, which works in Firefox:
$(document).ready(function() {
$('.invest-port-thumb a').mouseenter(function() {
$.get(this.href, function(response){
var cName = $(response).find("fragment cName");
var cind = $(response).fi...
JavaScript lets you add arbitrary properties and methods to any object, including DOM nodes. Assuming the property was well namespaced (something like _myLib_propertyName) so that it would be unlikely to create a conflict, are there any good reasons not to stash data in DOM nodes?
Are there any good use cases for doing so?
I imagine do...
How would I check if the page is being loaded in an iframe? Also, could I make a page change the main URL to its own from within an iframe?
...
[Note: I can only reproduce this issue with a Win2k web server running IIS 5.0. I can't reproduce this issue with a Windows XP web server (localhost) running IIS 5.1.]
I've uncovered a lot of information pertinent to UTF-8 encoding.
If I've learned one thing, it's this.
EDIT: MSDN offered that for IIS 5.0 and earlier, Response.CodePag...
Trying to do a basic XML retrieval. The code works as expected in Firefox and Opera, meaning it alerts with the text value of the "title" node from the XML document. But in IE7, I am getting "object required" from this line.
x=xhttp.responseXML.getElementsByTagName("title")[0].childNodes[0].nodeValue;
alert(x);
Btw, it was wor...
in aspx code behind, define a var like:
Public rate as decimal;
then in page markup, put a control like:
<asp:HiddenField ID="myRate" runat="server" Value='<%=rate%>'/>
then in javascript try to test this value:
alert(document.getElementById('<%=myRate.ClientID%>').value);
it gave me the value as <%=myRate%>, not something li...
Hi!
I am using google search appliance for search. When I run a search term say "text1" it displays the result in the iframe.
Then on the second time when i do a search say "text2" and click on one of the links from the result and return back using the back button, after visitng page. It show the search term "text1" instead of the se...
Possible Duplicate:
How To change the HREF for a Hyperlink using jQuery
I have to change to Class="zz1_TopNavigationMenu_1 ms-topnav zz1_TopNavigationMenu_3 ms-topnavselected zz1_TopNavigationMenu_9" href ?
<td onmouseover="Menu_HoverRoot(this)" onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(this)" id="zz1_TopNavigationMe...
I have some questions about focus in general (adhering to WC3 format, screw IE). I'm having problems with unintended actions occurring on a widget i am building (using the Dojo Toolkit), and i believe a better general understanding of focus will allow me to solve my problem myself, so here goes:
First of all, which common HTML element a...
Not sure if this is possible across all modern browsers, but is there any way, using javascript/jquery to remove all html tags, css formatting, word doc format codes, ect. from a string of text as it is being pasted into an input area of a page (in my case an element set as "contenteditable), so it always goes in as just pure plaintext? ...
I'd like to find (using javascript) all of the references to image links on an HTML page. Since I'm also looking for image references that may not be displayed, or are in unknown attribute types, simply looking for image tags or src's etc. isn't enough. As such, I haven't yet found a simple method using an html parser to do this.
Ha...
I have a simple HTML form that asks a user to input their name, SKU, quantity, and comments. This is for a simple inventory request system.
<html>
<body>
<form id="myForm" method="post">
<input type="submit">
<br>Name: <input type="text" name="form[name]">
<br>SKU: <input type="text" name="form[SKU1]">
...
I'm writing several small things in JavaScript, notably a mousemove event, and a AJAX call. I don't believe that two things should necessitate loading the ~25KB that is jQuery. Add in the fact that I want as few external dependencies as possible and necessitating jQuery isn't something I want to do.
Is there a primer / tutorials on rewr...
Are the values returned by Javascript's getElementsByName(...) guaranteed to be in the same order that they appear in the DOM?
...
I'm trying to use Lightbox with my CodeIgniter application. Lightbox says to put the following in the head tag:
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<link rel="s...