JScript Smart Table
May 4, 2006
I have an application where I have 9 items to choose from and desire a table that will allow only 3 items (any 3 items) to be chosen then check out of the table.Check out can not be allowed unless only 3 items are selected.
Is the JScript applications somewhere that will perform this logic?
View 2 Replies
ADVERTISEMENT
Sep 9, 2007
If I have the following variable which contains the drop down menu for list of card numebrs:
var abc='<option value="1234567890123456">1234567890123456</option><option value="0987654321987654">0987654321987654</option><option value="0147852369014785">0147852369014785</option>'
How can I pass this variable to a function and mask only the dispalyed card number? i.e. to have the following result:
<option value="1234567890123456">1234XXXXXXXX3456</option><option value="0987654321987654">0987XXXXXXXX7654</option><option value="0147852369014785">0147XXXXXXXX4785</option>
Note: the number of options in the drop down menu may varry, in this example its only 3 options, it might be more or less, this is why I called it "Smart Substring".
View 1 Replies
View Related
Dec 14, 2005
I am trying to write a regex that will parse BBcode into HTML using
JavaScript. Everything was going smoothly using the string class
replace() operator with regex's until I got to the list tag.
Implementing the list tag itself was fairly easy. What was not was
trying to handle the list items. For some reason, in BBcode, they
didn't bother defining an end tag for a list item. I guess that they
designed it with bad old HTML 3.2 in mind where you could make a list
by using:
<ul>
<li>item 1
<li>item2
</ul>
However, I need to make this XHTML compliant, so I needed to add the
</li> tag into the mix. Unfortunately, the only way to find where to
put it is to find the next[*] (<li>) tag or an open list (in the case
of nested lists) or close list tag. I was trying to get a rule that
handles the list items to work, but it only matches the first item in
any list. Here is the line of code:
bbcode =
bbcode.replace(/[list(=1|=a|)](.*?)[*](.*?)([*]|[list]|[/list])/g,
'[list$1]$2<li>$3</li>$4');
First, I check to make sure that the list item is inside a list. Then,
I match the[*] tag to find the start of the item, then I match either
the next[*],, orto determine the end of the item.
This successfully prevents a list item outside of a list from being
made into a <li> element, but only matches the first list item in a
list. Is there any way to make this match all occurances of this
pattern without looping over the statement until the pattern can no
longer be found?
View 13 Replies
View Related
Mar 14, 2003
I'm fooling around with building a form that grows depending on the users input (relatively new to DOM 2 - but fun stuff!) I'm working on getting it to work (rather than being pretty - there are many improvements that could be made).
My question is has anyone seen any similar examples out there? The more I build on this thing, the more I believe there has to be another way... (like rather than creating every pull-down box - yes, I should put that into it's own function! - should I be playing with visibility and positioning?) Code:
View 1 Replies
View Related
Dec 5, 2006
I have an autosave feature that, well... autosaves every minute. Now I could very well become the biggest abuser of my own feature. I currently have 8 windows open - I tend to just leave windows open for a long time. As a result, the javascript would be running every minute saving, creating unnecessary load on the server.
How could I make the autosave smart and only save if they are actively "working" with it? The only thing I can really think of is to have like a variable that sets to true whenever something happens, set to false whenever it saves, and only save when the var is true. Problem is, I have a lot of functions for events that I would need to attach it to... I'm sure I would miss it somewhere.
View 3 Replies
View Related
Jun 2, 2009
I'm using this rich text editor. Whenever a user pastes rich text from a program like Microsoft Word, the program's smart quotes are not understood by the browser (they appear as a diamond with a question mark in it). I ran a php function on the post value to replace all quotes with ascii characters, but realized that it also replaces the quotes present in the html generated by the javascript.Is there a way to convert smart quotes to normal quotes without also tampering with the html content?
View 1 Replies
View Related
Sep 8, 2010
How can I write javascript codes to interact with a smart card reader? I have found some activex controls and examples, but I think, it will be limited to IE only.How can I make it run in all browsers, if the card reader driver is installed, and the hardware is available for use?My problem is to make sure that the user puts his/her own smart card in the reader unit before he signs up in a website (a particular website, that I will be coding for).
View 1 Replies
View Related
May 29, 2006
I heard it is not the same.
The lastest version of JavaScript is 1.6 while lastest version of
JScript is 8.0
I also heard a little bit about ECMAScript, but I still don't know
what's the difference of them.
So, what's exactly the difference of it?
View 10 Replies
View Related
Jul 20, 2005
in ASP i can finish this line with an asp variable like below
mytext variable would contain a string like
"Pop_up()" <body Onload = <%=mytext%>>
so using ASP i can complete my onload statement.
I need a way to do this using a variable in Javascript.
How can this be done?
View 3 Replies
View Related
Feb 6, 2011
Does anyone know any programs I can use to validate Jscript? Preferably one that points out where the errors are. I need anything that can be thought of as long as it isn't IE. I'm okay with javascript but the differences in Jscript are making mountains out of molehills. If there was a Jscript section here I would have posted this there.
View 6 Replies
View Related
Jul 20, 2005
I am making a very simple application for my own personal use on my
Windows XP box. I want one that looks and feels like a web app. I don't
have too many languages to choose from on my home computer, and I don't
feel like installing a web server, and it already has Access on it, so I
was thinking HTA with JScript and Access. I see a way for JScript to
talk to Access is with ADO. Is this the best way, or is that the "old
way"?
View 2 Replies
View Related
Dec 27, 2007
I have a form input that takes a date in the format MM/DD/YYYY.
I would like to validate this input using Javascript in two fashions:
1. I need to check that the format of the input is 'MM/DD/YYYY' with the month day and year being numeric
2. I need to also check that the 'MM/DD/YYYY' being input is later than today + 2 days (i.e. if today is 12/27/07, then the input must be 12/29/07 or greater)
View 3 Replies
View Related
Oct 2, 2003
I have a dynamic page, it's a calander so called calander.asp
When the page loads it opens a popup window (filters.asp) containing a form that a user can filter different dates with different filters.
function openpopup(){
var popurl="filters.asp"
winpops=window.open(popurl,"","width=400,height=600,scrollbars,menubar,")
}
openpopup()
What im trying to do is get the when the user fills in the form.
it submits to the calander page, (the parent?)
<form name="form" method="post" action="calander.asp" target="_parent">
i want the popup to remain intact. when the form is sumbitted it opens a new window behind the filters.asp popup and doesn't filter the correct results.
View 1 Replies
View Related
Dec 16, 2004
What I need is a Javascript alert, such as "Are you sure you want to permanently delete record/s - Click OK to delete." to appear only if (isset($_POST['lnk_publish'])) is true... Code:
View 2 Replies
View Related
Dec 18, 2008
What's the global object in a WSH JScript?
View 4 Replies
View Related
Jan 14, 2010
Code attached, the bb code dosen't let my code post.
View 2 Replies
View Related
Aug 18, 2010
I have created a similar smart search like yellowpages:[URL]... Here is the problem I have with mine:
Lets say I search 'Attorneys' I start typing 'Att' ... then 'Attorneys' shows up in the smart search so I click on it and press enter. The next time I start typing 'Att' my browsers saved search field pops up over the websites smart search. Here is an image which might help explain the problem a bit more:
View 1 Replies
View Related
Feb 2, 2009
(Short version on a asp page, fill out the form and press submit. It takes you to a thank you page, at that point I want it to go BACk to the form.
(Detailed For my work, we have a web based ticket system, and add notes to these via asp pages. I came up with some code to auto file the text, change combo box's then submit itself. Upon submit it takes to a simple "Thank You page" .... after .submit I would like it to go back to the origional "frmAddnote" page. I have tried everything for 2 weeks including:
[CODE]
history.back();
or
history.go(-1)
or
[Code]....
PS Its important to mention that I am running this code from a testfile.js on my local machine... Works fine just cant get it to go "back". I have no control of the code on the asp pages but thats not important.
View 5 Replies
View Related
Jun 16, 2009
I have this jscript code and I want to show the first div onLoad. Trying to figure this out, what I did was:
Running on firefox works fine, the first div is showing onload BUT testing on IE doesn't work at all. It displays an error:
Here's the jscript i'm using:
View 2 Replies
View Related
Apr 15, 2004
The Windows common controls include a VBDataObject interface that can be utilized during drag|drop events (as an argument). Retrieving the path of files dropped onto a control is as simple as checking the format of the Data Object for vbCFFIles (constant = 15), and if true, enumerating the Files collection (1-based) for each item (which returns the full path as a string).
The Animation Control is simplest one I've found for demonstrating this:
Some information about that control is here...
(http://msdn.microsoft.com/library/devprods/vs6/vbasic/vbcon98/vbconusinganimationcontrol.htm)
<html>
<head>
<title>IVBDataObject Demo</title>
<style type="text/css">
fieldset{
text-align:center;
padding:2em
}
object{
width:3em;height:3em;
border:6px double activecaption;
vertical-align:middle
}
textarea{
width:60%;margin-top:1em;
word-wrap:normal;
vertical-align:middle
}
</style>
</head>
<body>
<fieldset>
<legend><strong>Drop File(s) ยป </strong>
<object id="IAnimation"
classid="clsid:B09DE715-87C1-11D1-8BE3-0000F8754DA1">
<param name="OleDropMode" value="1">
</object>
</legend>
<label><em>output: </em></label>
<textarea id="output" cols="100" rows="10"></textarea>
</fieldset>
<script type="text/JScript">
function IAnimation::OLEDragDrop(Data){
if(Data.GetFormat(15)){
var O = "";
var e = new Enumerator(Data.Files);
while(!e.atEnd()){
O += e.item() + "
";
e.moveNext();
}
output.value = O;
BackColor=0x80000003;}
}
// Just for visual feedback...
function IAnimation::OLEDragOver(Data, _, _, _, _, _, State){
if (State == 0){
if(Data.GetFormat(15)){Backcolor = 0x80000002;}
}
if(State == 1){Backcolor = 0x80000003;}
}
function window::onload(){
IAnimation.BackColor=0x80000003;
}
</script>
</body>
</html>
Probably most useful in HTAs, when scripting the FileSystem or Shell objects...
View 12 Replies
View Related
Mar 9, 2009
What i want to do is perform an action (specifically click a button) on a web page by executing a program on my computer. I'm guessing you need to activate the button's click event (or whatever javascript uses) on the web page in your program, but I'm not sure how i would go about doing that. Is there a way of doing this in Java?
View 3 Replies
View Related
Mar 6, 2001
I know you can use the onload statement to start a javascript when the page has loaded, but is there a statement that can start a javascript as soon as the page starts to load?
View 4 Replies
View Related
Jan 18, 2010
I have an activeXobject that I am using in Jscript. The object has a method which takes a structure and fills it with data. I have created the structure like . .
function MyStruct()
{
a = "aaa";
b = "bbb";
}
when I pass MyStruct to the method I get a type mismatch error!
View 5 Replies
View Related
Jul 23, 2005
We have an applet that implements the MouseListener interface but when trying to add the applet to the glasspane of another applet a classcastexception is thrown.
This all seemed to work fine when using JDK1.3.1_08 but since using
JDK1.4.2 it does not work.
The class implementing the mouse listener interface is defined using:
public class MapListener extends JApplet implements MouseListener,
MouseMotionListener
and created within the HTML page using:
<applet width="600" height="0" code="MapListener.class"
name="MapListener" MAYSCRIPT="true"> </applet>
The MapListener object is referenced in jscript using:
var applet = parent.mapFrame.document.MapListener;
and is added to the glass pane of an applet named IMSMap using:
parent.mapFrame.IMSMap.getGlassPane().addMouseList ener(applet);
This line however throws a jscript exception with message
'java.lang.ClassCastException: javax.swing.JPanel' and with name
'RangeError'
We are using IE6.0.2800
View 2 Replies
View Related
Mar 3, 2006
What it does is adds up quantities and gives you a total. Works fine with whole numbers but when you need to have cents - decimal point plus two, the email received does not show the quantities. Code:
View 1 Replies
View Related
Jul 31, 2010
i installed jondesigns smooth gallery from [URL] All installed fine, minus one problem with setting the thumbnails up. It asks for this to be entered im just not sure where that code should go: useThumbGenerator: true also it asks for a cache folder to be writeable does that just go anywhere or? Heres my version here: [URL]
View 3 Replies
View Related