|
I have an asp:listbox control. I would like to be able to delete an item from that list box by pressing the delete key. I understand that this is not built in because the asp:listbox is a server side control and the server is unaware that the delete key has been pressed while the listbox had focus. I have been told that javascript is the way to go to build this functionality myself. My question is, has anyone done something like this before. I have never used javascript and I don't want to reinvent the wheel if I dont have to. Otherwise does anyone have some code samples about writing events for controls using javascript?
Let me know. Thanks!
John
|
|
|
|
|
Hello friends,
My website must use rather a lot of graphics and I want to convert them into .txt instead of .jpg or .gif so that the page will load faster. Please help me what to do.
Any advice or idea appreciated,
Thank you very much in advance.
Thuy Dinh,
|
|
|
|
|
Thuy Dinh wrote:
Any advice or idea appreciated,
Changing the file extention will not change load speed (for images alone), it also won't show the image because the HTTP header would return text/html instead of image/gif or image/jpg . Lose some of the images if you want to get a faster load time.
-Nick Parker
|
|
|
|
|
Cant do that...
get rid of some images or save them in lower quality...
|---------------|
| theJazzyBrain |
|---------------|
|
|
|
|
|
|
Do you mean that you have a lot of graphics of text that could be changed to simple text?
If so, you could definitely speed up the page load by reducing the file size with the use of Cascading Style Sheets (CSS) to format the text however you want it to look.
This is just a stab at interpreting your request though ... because I am not really sure what would be accomplished by converting a JPEG or GIF into a text file.
Wally Atkins Newport News, VA, USA
|
|
|
|
|
Thanks for your reply. This method of converting graphics into .txt and push the page load faster speed I've seen some sites on Net by chance. I saw the picture following the format .txt and it is good for the speed. I've asked several forums for help but no results.
I'll try to remember what the site is ...
Thuy Dinh,
|
|
|
|
|
My boss is cheap! So we're sticking with the *NIX based host and I've got to code the PHP to access our db tables. Please mind my ignorance since I've never coded with PHP and my C,C++ is kinda shabby since I've been out of the programming game for a while.
My problem is I've got the script to open up my tables for the search engine and I can display the results but only if the user types in the product number or name EXACTLY how it is on the tables. (E.G. 410160) This would be fine except that 60 is a metal finish code such is 48, 55, 59, 60, 70 and many more. So if the user simply wishes to search for 4101 and display all finishes or De Dion without a specific finish, hole pattern, or arc then I need to have the script only search the entire line for something containing (4101) or (De Dion). With ASP I simply used a .filter function but I do not know nor can I find what I'm looking for (Perhaps I just didn't know how to word it right) to do a similar search with PHP. BTW we are NOT using mySQL (The IS captain doesn't want the security risks until we reach ISA server level.) if that makes any difference.
:-._'¯OMNIGOD¯'_.-:
d-o-b "Ohmmm"
|
|
|
|
|
Hi,
I have a problem trying to develop this new function in my website. I am trying to do a 'shortlist' function which allows users to have a shortlist of the bulletin board posting which may be relevant to them only. SOmething similar to the 'shortlist' function offered on this site. Is this done through a SQL statement in ASP? If so how do I make it a general statement so that it can be used dynamically?
Also, I am also hoping to develop a notification system where emails will be sent to relevant users informing them of a new posting that they would be interested in has been posted. Is this function done using the COM object?
Please help. I am a beginner ASP programmer and having alot of trouble with this.
|
|
|
|
|
hi
i have opened a modal dialog box using following script
retSearch = window.showModalDialog('SearchCompany.aspx',oArg,'status:no;dialogHide:false;help:no;scroll:yes');
problem is when i submit SearchCompany.aspx form i get result in a new browser window , how may get the result to be in same browser window
i have used target option of frame = "_self" , which is suppose to open page in same window !!
any helps
the dialog window works with html file !
problem occurs only when i use asp/aspx page i.e. when i submit window !
any idea whats wrong !! ?
P.S. PATWAL
|
|
|
|
|
If you are going to do *ANY* navigation in a dialog, you need to have the dialog embed an iframe... otherwise it will open a new browser window. below is an example of a dialog "host" than can be reused. When the inner frame document wants to close the dialog, simply set the parent.returnValue = "R", rather than window.close(). Hope this helps...
<title>Copy Alert Matrix
Loading...
|
|
|
|
|
I'm creating a web interface for my VSS server for doing the checkin/ checkout of the Database objects (packages and Stored Procs). I'm using ASP and VB components for doing this with the help of VSS type library.
I want to display the VSS project folder structure in the front end. But I am not able to find out a way to get the project folder structure under the root ($/ )in the VSS.
anybody there having a solution..?
Shanavas T
Senior Software Engineer
Satyam Computer Services Ltd.
India.
|
|
|
|
|
Hi Shanavas,
Please check the following:
http://www.sourcegear.com/products.asp
(I have'nt tried them, but got to know from a link. Perhaps useful to you)
Perhaps a miniature version of SourceSafe over web is available in GotDotNet Workspaces also. This ActiveX Control may be helpful for you too, since it provides a very similar interface like Microsoft Visual SourceSafe.
Deepak Kumar Vasudevan
http://deepak.portland.co.uk/
|
|
|
|
|
Hi!
We're looking for a simple free applet to play a (compressed) sound file on mouse click.
I need two of these applets on one page (should work usually - but who knows
(free as in: can be used on a company site)
TIA
Peter
"Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS
sighist | Agile Programming | doxygen
|
|
|
|
|
How about using Flash? You say "applet" and to me that means Java. But really a Java Applet is total overkill if all you want to do is play some music. With Flash it is really easy, just open up Flash, import the WAV/MP3, create a button and assign a Play action to the button pointing to the imported music file. It is also easy to host in the HTML page.
Paul Watson Bluegrass Cape Town, South Africa
Macbeth muttered:
I am in blood / Stepped in so far, that should I wade no more, / Returning were as tedious as go o'er
Shog9:
Paul "The human happy pill" Watson
|
|
|
|
|
Thanks - but as usual, more questions...
How do I do flash?
Is a flash plugin wider available than whatever you need to run a JAVA applet?
Weren't you the guy against flash? (I guess only "complete flash sites", right?)
"Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS
sighist | Agile Programming | doxygen
|
|
|
|
|
peterchen wrote:
How do I do flash?
Couple ways.
You can buy Macromedia Flash MX (or if you are dodgy use the trial version)
You can also use Swift, another Flash dev tool.
It is really quite simple, if you can handle C++/VS.NET/q-basic you can do Flash. I can whip up a Flash file with a button which plays some music for you if you want
peterchen wrote:
Is a flash plugin wider available than whatever you need to run a JAVA applet?
Debatable. I don't know the hard answer to that. However Flash is truly everywhere. When producing your Flash file export it to Flash 5 format and not Flash MX/6.0 as that is still distributing itself.
I would confidently recommend Flash for it's wide distribution (though you get nuts like John Simmons who won't even let JavaScript run on their computers.)
peterchen wrote:
Weren't you the guy against flash? (I guess only "complete flash sites", right?)
Flash is like VB; It has it's uses. It can be used well and it can be abused. It is just a tool.
Paul Watson Bluegrass Cape Town, South Africa
Macbeth muttered:
I am in blood / Stepped in so far, that should I wade no more, / Returning were as tedious as go o'er
Shog9:
Paul "The human happy pill" Watson
|
|
|
|
|
Thanks Paul!
What I nearly forgot - what kind of files can Flash play? mp3 or similar compression level would be good...
and yes, if you could help me whipping it up, that would be cool.
[edit] Just found a cool tool on http://www.swift-tools.com/ - turning a mp3 into a flash. Great! However, it looks like I need to whip up a custom thingie.[/edit]
"Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS
sighist | Agile Programming | doxygen
|
|
|
|
|
I'll look into it over the weekend I guess
Here's some background:
We want to demo listening tests on our web site - basically "can you hear the difference": it's always between a "perfect" sample and one of ca. 10 "modified" ones.
Ideally, I'd "preload" the sound files (without the user seeing their names - and also, not seeing which one takes longer to load and which is already in the cache).
And ideal UI would be two buttons to sdwitch between "Sample A", and "Sample B"
Is it possible to employ the cache - i.e. not download each sound file every time in this scenario? First the "perfect" sample is always the same, second, the user is likely to go back to a previously heard sample.
Just a few tips for the beginning, if you like
"Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS
sighist | Agile Programming | doxygen
|
|
|
|
|
peterchen wrote:
Is it possible to employ the cache - i.e. not download each sound file every time in this scenario? First the "perfect" sample is always the same, second, the user is likely to go back to a previously heard sample.
I honestly do not know wether Flash caches resources internally. SWF files themselves to cache fine though, so you could seperate all the mp3s into seperate SWF files and display them alongside each other as neccesary. Then already loaded files will just come from the cache and not have to be downloaded again.
The rest of what you are saying is easy enough. Flash is quite powerful (can you believe I connected Flash to SQL the other day? Hectic stuff.)
Paul Watson Bluegrass Cape Town, South Africa
Macbeth muttered:
I am in blood / Stepped in so far, that should I wade no more, / Returning were as tedious as go o'er
Shog9:
Paul "The human happy pill" Watson
|
|
|
|
|
Paul Watson wrote:
peterchen wrote:
Is a flash plugin wider available than whatever you need to run a JAVA applet?
Debatable. I don't know the hard answer to that. However Flash is truly everywhere.
Reach the widest online audience:
Macromedia Flash Player is used by over 414 million people—the most widely viewable rich client technology to deploy content and applications. Also available for multiple device platforms including Microsoft® TV, Liberate®, Pocket PC and many others
http://www.macromedia.com/software/flash/productinfo/product_overview/[^]
IMHO - Flash is still the only way on the web to get your content to look exactly like you want it ... and only have to do (write) it one time. Not to mention the ease of making incredible mutlimedia websites, the use of components, vector graphics for sweet scalability ... etc, etc, etc.
Web standards are a great thing but I just wish there was a "standard" web browser that actually did everything in the standards.
Sorry, this wasn't meant to be a lash out at you Paul ... I have just been highly frustrated in web development recently
Wally Atkins Newport News, VA, USA
|
|
|
|
|
D2F3U wrote:
I have just been highly frustrated in web development recently
Well first off I can whip out of my bag of tricks 50 reasons why Flash is bad (binary, not a standard, owned by one company, poor accesability etc. etc.) so I don't think Flash is in anyway the correct technology for us to use to create entire websites.
Macromedia.com shows us that a combination of Flash and HTML is the way to go, that site is damned good IMO. Also funny to see how when they re-launched it was 99% Flash. People bitched, it did not work, people moaned, it was terrible to use. Now by beta 4 they have gone to using more HTML than Flash.
As for the web in general; We are trying to do in 4 years what the rest of the IT industry still has not done in 20 (cross platform environment? Does not exist yet.) Plus we are trying to do it not to a few hundred users at a time, but to hundreds of millions of very demanding users who expect the system to work as of yesterday.
Also you mention "your content to look exactly like you want it" well I could go on for 100 pages (with many links to Zeldman) about why that is exactly what we should NOT be aiming for, pixel precision is bad.
Anyway. I get frustrated too. But last week I coded up a simple enough website (20 pages or so) in a single day using HTML and CSS which worked in all modern browsers and worked damned well. I was so pumped, so the frustration is off set when you get things right.
Paul Watson Bluegrass Cape Town, South Africa
Macbeth muttered:
I am in blood / Stepped in so far, that should I wade no more, / Returning were as tedious as go o'er
Shog9:
Paul "The human happy pill" Watson
|
|
|
|
|
If you don't want to use Flash or java applets, etc., why not just use the following:
<bgsound balance="0" id="Sounder" loop="1" src="" volume="0">
and then a handler fcn
function setAudio(audioFile) {
Sounder.src = audioFile;
}
|
|
|
|
|
Is there a way to get around the 128KB size limit when caching data on the client-side using the userData behaviour? Otherwise is there a way to save an XML document onto the client-side machine for cross session access?
Using ASP (not ASP.NET) and javascript.
|
|
|
|
|
From what I am aware you can't do that!
sorry
Jason
|---------------|
| theJazzyBrain |
|---------------|
|
|
|
|