|
If it is practical,I was looking to adding a navigation bar for my website through a javascript or php or some other technique.
I was hoping i could just at this to the beginning of an html file (with whatever related changes). I make the document in wordprocessor and just want to add standard links for my website to the page, and maybe have those links in a shared file. Basically this is just to avoid using frames.
This may be a simple and basic website design feature. I just wasn't finding this type of code.
|
|
|
|
|
A lot of menus are javascript driven, no reason you could not put that in a common file and include it
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi all,
Using javascript how to get the TD id values using the TR id that should work in all browsers.
For Example:
<table id="table1>
<tr id="row1">
<td id="r_c_1_1">Row One</td>
<td id="r_c_1_2">Row One</td>
<td id="r_c_1_3">Row One</td>
</tr>
<tr id="row2">
<td id="r_c_2_1">Row Two</td>
<td id="r_c_2_2">Row Two</td>
<td id="r_c_2_3">Row Two</td>
</tr>
</table>
Thanks in advance
Know is Drop, Unknown is Ocean
|
|
|
|
|
document.getElementById
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Christian Graus wrote: document.getElementById
I believe he is trying to retrieve the ID itself whereas this method would require the ID.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
A little DOM jugglery using nextElement and nextSibling from document.getElementById of TR ID should get this TD ID.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi,
I want to integrate credit card swipe machine data into .Net web application.
How to go about it?
Thanks
Mini
|
|
|
|
|
miniThomas wrote: credit card swipe machine
Your swipe machine should have come with some instructions right?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi,
I am developing a web based .Net application and I want the application to pick up data from software which captures the data from credit card swipe machine.
Thanks,
Mini
|
|
|
|
|
Hello all.
So I have this COM component I created in order to perform some validations of an ASP page. This validation is done through VBScript in the client side, and calls my component.
Everything works fine, but just one thing. When I first load my IE browser, it appears this "to help protect your security, IE has restricted this webpage from running scripts or ActiveX controls that could access your computer". If I click on it and allow the blocked content, everything works fine.
Now, I wished to remove this thingy automatically. I read that I could change the settings in the IE. Still, I wished I had not to, since this component is running on an intranet and I shouldn't change settings for the entire members of the intranet.
So, I started googling about and found some resources. Particularly, I found this article[^] on MSDN that explains how to do what I want. I did follow the instructions given and it's not working for me. This could be because either my component is just a COM, not an ActiveX; or because since the article didn't explained what the CLSID_SafeItem was, I'm passing a wrong value; or perhaps I haven't sacrificed enough goats.
So, any idea on what am I missing here?
Thanks in advance.
Stupidity is an International Association - Enrique Jardiel Poncela
Die deutsche Sprache sollte sanft und ehrfurchtsvoll zu den toten Sprachen abgelegt werden, denn nur die Toten haben die Zeit, diese Sprache zu lernen. - Mark Twain
|
|
|
|
|
Fernando A. Gomez F. wrote: So, any idea on what am I missing here?
Sorry, i don't. I'd be saddened if it was possible to deploy ActiveX controls without explicitly putting the page hosting them into the trusted sites category, but not terribly surprised.
I've gotta ask though; is there a particular reason you can't just use JS for the client-side validation? Using an ActiveX control for this purpose seems like... extreme overkill. Alternately (if you're not at all comfortable with JS for instance...), IE can run VBScript directly - just use a different language attribute on the <script> tag.
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|
|
Shog9 wrote: IE can run VBScript directly
does this qualify as irony?
Fernando A. Gomez F. wrote: Stupidity is an International Association - Enrique Jardiel Poncela
led mike
|
|
|
|
|
Shog9 wrote: I've gotta ask though; is there a particular reason you can't just use JS for the client-side validation?
Yes, there is. The customer has this USB-like thingies[^] that they use for encryption and such. They requested that the webapp, which approves some important purchase request documents, should verify that the user has this item plugged in. Furthermore, since such things provide the user ID, the log in must be validated against it.
The way for doing so is using the Microsoft Cryptography API. So, since AFAIK I cannot access Win32 APIs from a script, I created this COM component so that we can do such validation (and obviously it must be running on the client side). It all works fine (after the user allows it to run, of course), only that such message is being displayed.
Thanks for the comments.
Stupidity is an International Association - Enrique Jardiel Poncela
Die deutsche Sprache sollte sanft und ehrfurchtsvoll zu den toten Sprachen abgelegt werden, denn nur die Toten haben die Zeit, diese Sprache zu lernen. - Mark Twain
|
|
|
|
|
Aside from the aforementioned article, I found this[^] one. Essentially, I just needed to add the component's CLSID to the registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Ext\PreApproved
Stupidity is an International Association - Enrique Jardiel Poncela
Die deutsche Sprache sollte sanft und ehrfurchtsvoll zu den toten Sprachen abgelegt werden, denn nur die Toten haben die Zeit, diese Sprache zu lernen. - Mark Twain
|
|
|
|
|
The IE has to get a confidence regarding your ActiveX Control. Did you sign it with a valid CodeSigning Certificate?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
|
Member 4593092 wrote: It takes around 15 seconds to show the modal popup.
Does anyone know if there is an issue with modalpopupextender?
What like a 15 second delay? You're kidding right? Perhaps you would consider studying the technology you work with so you can understand how it works and why? Or you could continue to drag and drop magical things onto other magical things that you know nothing about, whatever floats your boat.
led mike
|
|
|
|
|
|
Member 4593092 wrote: if you got nothing good to say, then do not respond. i'm novice.
If your a novice why are you telling me what to do? Perhaps you don't understand the concept of being a novice?
led mike
|
|
|
|
|
How, exactly, is slamming a guy who who is asking for an answer and admitting he's a novice helpful here?
cheers,
Chris Maunder
CodeProject.com : C++ MVP
|
|
|
|
|
Chris Maunder wrote: How, exactly, is slamming a guy who who is asking for an answer
I gave him an answer in my first reply, one that I thought and still do was very likely correct.
I guess this is one place we differ. I didn't consider my suggestion that he study the technology to be slamming him. That he was wasting his time by assuming there is a bug in library authored by people that actually know what they are doing rather than assuming he created the bug in his code or flaw in his approach. But then he decided that my reply wasn't good enough for him, you know my freely given time and thoughts and he should flame me up for it. So I returned fire. I always will, I guess you can delete my account if you feel my determination not roll over and take it from idiots to be detrimental to the site.
Like I told someone the other day, the people on this site give information, opinions and time freely and are under no obligation. Therefore even if the reply you get is "The sky is red" you have no room to complain. Just keep your mouth shut and keep looking for better free help. This clown was perfectly free to decide that my advice was garbage and continue on his merry "I don't need to know anything" way, but he choose to berate me because he didn't like it. Well I still think it's some of the best advice he will ever get.
led mike
|
|
|
|
|
He deleted his message so I've no idea of the context of his original question but all I can see is:
Him: It takes around 15 seconds to show the modal popup. Does anyone know if there is an issue with modalpopupextender?
You: RTFM
If his question was "How do I use modalpopupextender" then "RTFM" (or just vote the question down) is a valid response. But how many times have all of us tried to use something and something bizarre has happened so we start wondering "is there an issue with X?" It's not like bugs in frameworks are exactly a rare thing.
Seriously: if we lived in a world where we all went around saying "Go find out yourself" to every programming question then
(a) google would have even more money than it does,
(b) there'd be no questions on programming boards
(c) cats and dogs would be friends and telemarketing would be a capital offence.
cheers,
Chris Maunder
CodeProject.com : C++ MVP
|
|
|
|
|
Chris Maunder wrote: If his question was "How do I use modalpopupextender"
No it wasn't. It was (paraphrasing): I am using it and it takes 15 seconds does anyone know if there's something wrong with it.
Chris Maunder wrote: Seriously: if we lived in a world where we all went around saying "Go find out yourself"
I agree. I don't know how you found this thread but if you look at some of my posts most of them are that exact nature but I go find a link and provide them the link embedded in sarcasm, like: No. Nobody knows that, and if anyone did it certainly would not be Microsoft and the certainly would not <link>document it</link>
In this particular case I never considered for a second there would be a link to find about modalpopupextender implementing a 15 second delay.
Now you may think that my sarcasm is for me, it's not, it's because in our line of work I firmly believe that learning how to use (and now find) documentation is as important a single aspect of becoming a capable developer as any other single issue. So my sarcasm is a manifestation of the old adage, "If you give a man a fish he will eat for a day. If you teach a man to fish he will eat for a lifetime". Just so you know I used to try and explain it to them without the sarcasm, it never seemed to work.
led mike
|
|
|
|
|
led mike wrote: I firmly believe that learning how to use (and now find) documentation is as important a single aspect of becoming a capable developer as any other single issue
Absolutely.
How do we encourage this on a more global scale? This is my Holy Grail: a system that encourages people to look for themselves before asking. One man's sarcasm can only go so far
cheers,
Chris Maunder
CodeProject.com : C++ MVP
|
|
|
|
|
Merge questions. I see a question i recognize being asked today, pull up the one i'm thinking of in the FAQ for that forum (a wiki-editable list of questions and answers), and hit "merge" - the question now redirects to the canonical q&a, with the latest person asking added to the "asked by..." list for that question, and notified via email that a reply is ready.
Two advantages: 1) gets folks used to looking at the FAQ, 2) reduces effort involved in answering oft-repeated questions.
Two big problems: 1) does nothing to prevent stupid (lack-of-detail/focus) questions from cluttering up the forum, 2) brutally hard to prevent abuse.
Citizen 20.1.01 'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
|
|
|
|