Combine IF And FOR - Double Prints The Event Dates.Original
Jan 31, 2010
Is there a way to check for A , else check for B? The code in Red is what I need to put together. [This is an event calendar. problem is it double prints the event dates.Original problem is here. [URL]
[Code]...
View 3 Replies
ADVERTISEMENT
Aug 19, 2011
how can i know the original element that raised the event if that event is propagated up the tree ?
View 6 Replies
View Related
Sep 24, 2009
event mousedown and mouseup and mouseout actually do the same thing,how to combine it?
$('a#cursor')
.css({cursor: 'url(hand.cur), default'})
.click(function() {
[code]....
View 3 Replies
View Related
Sep 14, 2011
I am try to make a form that appears to be multi page. I am trying to use a button to hide one div and display another at the same time my script is
head
<script language=javascript type='text/javascript'>
function hidediv(pass) {
var divs = document.getElementsByTagName('div');
for(i=0;i<divs.length;i++){
[Code]...
View 6 Replies
View Related
Jul 23, 2005
Is there such a thin as the "double click" event?
Something like onclick="dothestuff"..... would there be something like
ondoubleclick="dothestuff" ?
View 1 Replies
View Related
Jan 19, 2010
http:[url]............1) In the events.js-file where you write the longer text part for the tooltip, is it possible to include images somehow for each event within the end of the tooltip?I thinkt that would make the activities look a bit more interesting to read about.
2) When I click on any yellow event in the calendar, it changes the text to the right. Fine with that. But is it possible to use onclick as a double function?So that when I click on "START" (bottom left of the calendar) after having pressed any yellow event, it will not only take me back to the right month but also take me back to the start text?
View 1 Replies
View Related
Aug 30, 2010
where I can get a Date and Time Picker that will only allow to choose current dates instead of past dates written in Javascript or JQuery?
View 5 Replies
View Related
Dec 17, 2009
I have encoded same javascript file with "Microsoft script encode" and accidentally deleted the original file.There is a way to convert the encoded file into the original version.. The form of the encoded file is : <script type="text/jscript.encode">#@~^.....
View 5 Replies
View Related
Sep 3, 2009
I have a page that submits to a db then re-loads its self with new information. Unfortunately it goes wrong when the user double clicks on a one of many text links that provides the info for the display on reload. How do I stop users from double clicking on the page? Ideally I think I would like to call some sort of js function from body onload as I presume this would then cover the whole of the page, but have no idea if this is possible or how to go about writing it.
View 8 Replies
View Related
Sep 23, 2011
I am trying to make it so that when you press a button it prints out a random number. This is what I currently have:
Code:
<script type="text/javascript">
function randomnumber(randomForm){
var x=Math.floor(Math.random()*11);
document.write(x);
}
</script>
<FORM>
<INPUT type="button" value="Print Number" name="button1" onClick="randomnumber(this.form)">
</FORM>
When I click on the button it just clears all the text from the page and clears the bgcolor. A random number then appears at the top left corner. I am trying to make it so that when I press the button it prints out a random number just above or below the button. Is this possible? if so how do you set it up?
View 2 Replies
View Related
Jul 9, 2004
When designing a site, a request has come to me about printing web pages. What they want is the page to be broken up into frames, and only one frame will be able to be printed. so that if the page is broken into 3 vertical frames. Would it be possible to have it only print the middle page if the person clicked the print button.
This is so that even beginner users to IE or Netscrape would be able to get a printout of the page without having to change options in the print preferences.
* The example the person gave me was similar to Page Breaks in MS Excel. You can see the whole thing, but when print is clicked, you only get a certain section printing (even a beginner can do this).
View 3 Replies
View Related
Mar 11, 2005
I would like to be able to print to the screen as you type in an text input field. I'm guessing that you will have onkeypress, but I'm lost after that.
View 17 Replies
View Related
Jun 7, 2010
I don' t know what I'm missing here..
$("div#carousel a").each(function(i) {
$(this).click(function(e) {
e.preventDefault();
console.log(myArray[i]);
});
});
it doesn't loop, it always prints the first item in the array (there are 18 <a>'s inside div#carousel, and 18 items in the array...)
View 4 Replies
View Related
Apr 14, 2011
I have a basic html form with some text input fields and a couple drop down selection lists. Our employees print the form and include it with items they need our shipping department to ship for them. The form uses the following verification script to ensure the required fields have been populated before the screen prints. It works exactly as desired in Safari and Firefox. In Internet Explorer, however, the selections made in the drop down lists are reset to the default values on the printed form.
Before you respond with, "don't use Internet Explorer," you have to understand that Internet Explorer is our only corporate approved web browser because it is the only browser supported by some of our other "mission critical" third party web apps and because it can be more rigorously controlled using Group Policies than Safari, Firefox, Chrome, Opera, et al, can. How to make the form print without resetting the drop down list selections? :confused:
<script language="javascript">
function verify() {
var themessage = "You must provide the following information";
if (document.shipment.SenderName.value == "") {
themessage = themessage + ", Sender Name";
} .....
View 1 Replies
View Related
Jul 11, 2011
I have implemented Superfish in SAP Portal. there is a small issue when I take a print using the browser's print option. When I try printing the Web Page from the browser, the Top Level Navigation Menu appears as a list of links (vertical). This is happening in both IE as well as Firefox.
I have seen the same issue in the website from where I downloaded Superfish :-|
1. Goto: [URL]
2. Click on 'Print Preview' button in your Browser.
3. The Superfish Menu below the text 'The result:' will appear as a list of links in the print preview.
View 6 Replies
View Related
Oct 22, 2010
I'm having a problem with .attr(). I will explain it whith code.I have this HTML code:
<p id="textoMarca0" onmouseover="muestraDialog('textoMarca0');">
this is an example paragraph
</p>
[code]....
So now the onmouseover has again its value [the original one, copied by doing an alert($("#"+elem+i).attr('onmouseover')) when i disable the onmouseover event], but it doesn't work
View 4 Replies
View Related
Nov 11, 2010
I'm working on an html assignment using javascript and I need to have two radio buttons as well as a text box. When you click on one of the radio buttons it needs to display text inside the text box. right now I have:
Code:
<form>
<input type="radio" name="yes" value="" onclick =" "/> yes</br>
[code]....
View 14 Replies
View Related
May 10, 2010
I am interested in using real time analytics and also stuff like heat map software on my site for my small business however, I am worried about the amount of extra calls it will take by adding these new scripts..
I read that its possible to put them onto one and call it once..
How would i do this? Is this also possible for JS plugins as well (wordpress user)
View 1 Replies
View Related
Dec 8, 2011
I'm a js novice and I've been trying to implement a few scripts. I was able to get them to function for the most part.
[URL]
I have the following 3 plugins:
1. accordion menu that drops down to show filter categories
2. a gallery filter to filter out images in a category once it is clicked on,
3. Magic Zoom Plus to zoom in on an enlarged image and to provide a lightbox gallery where you can click the arrow to advance to the next image.
The filter works for the thumbnails, but there is an issue when you click on a thumbnail to enlarge it and it opens the Magic Zoom Plus gallery. When you click on the arrows to go forward & back, it is taking you through all of the images, where it should just be the ones that in that category. I know that the Magic Zoom Plus gallery works on all the images on a page. I assume that in order to get the gallery feature to apply to a category & not the whole page, there would have to be some changes the Magic Zoom Plus script.
View 5 Replies
View Related
Sep 16, 2005
I was wondering if there was any easy way to do the following in javascript:
I have two form fields, firstname and last name, as the user enters their information into a form I want to be able to show them what their username is going to be.
While they enter the information into the fields I was hoping to have it generate the username as the type.
I need to take the first letter of their first name (the first letter in the firstname field) and the entire lastname to combine it into a username. Except if there are spaces or any other characters such as dashes apostrophes they must be removed.
View 3 Replies
View Related
Aug 27, 2009
My site loads too many javascript files and it takes much time to load page. I would like to reduce the number of http requests and combine all javascript files into one file. What is the best way for it? Will it work if I just copy whole code from all files and paste into one or anything else is needed?
View 3 Replies
View Related
Nov 16, 2010
I have a form where dob is generated using 3 select boxes, 1 for day, month and year. My output needs to be in the form dob=dd-mm-yyyy rather than day=dd, month=mm and year=yyyy.It has been suggested that i do the following:
"On submit button click, use JS to create a hidden input (Q5) in the form and assign its value, then disable the day, month, and year fields so they are not submitted."
View 1 Replies
View Related
Dec 2, 2010
Right now this javascript shopping cart works to 1. charge shipping based on the item, 2. the destination country, 3. it combines shipping for a quantity over 1 of the SAME item.Each item has 2 different possible shipping charges. I am trying to get the javascript to check the shopping cart to see what item in the cart has the highest possible shipping charge, charge that amount to that item, and charge the lowest possible shipping charge on all other items in the cart. If item A is purchased alone shipping is $5.00.If purchased with item B, which costs $10.00 to ship alone, the $10.00 is charged for item B and only $3.00 for item A. Because item B had the higher shipping charge at a quantity of one.
I have tried adding various things like me.items[current], item.shipping, me.shipping, this.shipping, shipping_Cost, and other things next to the second && in the part of the script that shows the country. I have also tried adding && if (me.whatever) and && if (item.whatever) and similar things at the beginning of the script next to if (this.country). I have found the parts of the script that pertain to cart items and to updating the shopping cart.The javascript is in 2 parts. One part goes in the item page, which I will post first. The second part goes in an external javascript file which I will post at the bottom. In between there is the part that shows the shopping cart. It isn't part of the javascript.
<script type="text/javascript" src="simpleCart.js"></script>
<script type="text/javascript">
<!-- [code]......
View 2 Replies
View Related
Feb 16, 2011
Can anyone tell me how I can combine multiple sheets into one?
View 1 Replies
View Related
Feb 15, 2012
My website's performance has decreased. My website needs 13 secs to download. So i want to combine js scripts to one script. But i don't know how to do it. Please tell me very easy ways to combine js scripts to one.
View 9 Replies
View Related
May 24, 2011
Okay, script noob so please excuse my lack of knowledge. Our company has a website, and we have ContentCast which is a script that that pulls up a window and lets you browse a manufacturers site from in that window. For example, Lenovo. The instructions from ContentCast are, copy this script where you want the content to appear. Well, I want the content to appear when the user clicks "Click Here". Where do I put the script? I tried putting it inside an ahref tag but that did not work.
p.s. for copyright reasons I'm not sure if I can post the script.
View 4 Replies
View Related