Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Embedding a vbSlider in HTML!

Status
Not open for further replies.

tinymind

Programmer
Nov 9, 2000
90
GB
Hello

How can I embed a vb Slider into a html form and get it to return a value when the user clicks on submit .. ..

Basic VB and HTML programmer needing help!!!

Regards,

Tiny
 
This is some code that I copied from interdev. I copied it rather than searching through the registry for sliders clsid, which is generally what is done to insert activeX controls on web pages. You should be able to modify the properties of the slider by messing with the param values and you should be able to retrieve the slider value by referencing slider1.value

<OBJECT id=Slider1 style=&quot;LEFT: 0px; TOP: 0px&quot; classid=&quot;clsid:373FF7F0-EB8B-11CD-8820-08002B2F4F5A&quot; VIEWASTEXT>
<PARAM NAME=&quot;_ExtentX&quot; VALUE=&quot;2646&quot;>
<PARAM NAME=&quot;_ExtentY&quot; VALUE=&quot;1111&quot;>
<PARAM NAME=&quot;_Version&quot; VALUE=&quot;327682&quot;>
<PARAM NAME=&quot;BorderStyle&quot; VALUE=&quot;0&quot;>
<PARAM NAME=&quot;MousePointer&quot; VALUE=&quot;0&quot;>
<PARAM NAME=&quot;Enabled&quot; VALUE=&quot;1&quot;>
<PARAM NAME=&quot;OLEDropMode&quot; VALUE=&quot;0&quot;>
<PARAM NAME=&quot;Orientation&quot; VALUE=&quot;0&quot;>
<PARAM NAME=&quot;LargeChange&quot; VALUE=&quot;5&quot;>
<PARAM NAME=&quot;SmallChange&quot; VALUE=&quot;1&quot;>
<PARAM NAME=&quot;Min&quot; VALUE=&quot;0&quot;>
<PARAM NAME=&quot;Max&quot; VALUE=&quot;10&quot;>
<PARAM NAME=&quot;SelectRange&quot; VALUE=&quot;0&quot;>
<PARAM NAME=&quot;SelStart&quot; VALUE=&quot;0&quot;>
<PARAM NAME=&quot;SelLength&quot; VALUE=&quot;0&quot;>
<PARAM NAME=&quot;TickStyle&quot; VALUE=&quot;0&quot;>
<PARAM NAME=&quot;TickFrequency&quot; VALUE=&quot;1&quot;>
<PARAM NAME=&quot;Value&quot; VALUE=&quot;0&quot;>
</OBJECT>


Hope this answers your question!
Josh
 
Thank You Josh .. ..

That is excellent but how do i get that value back into an access database .. .. is it java within the submit button or ASP .... I really do not have a clue about web pages .. ..

Cheers,

Tiny
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top