<option> Object 
Author Message
 <option> Object

Hi at all!
I wanto to create an <option> object using ASP(VBScript) and I write so :
 <% set obj = new option() %>
But I have this error : "Identificator missing"

Could anyone help me ?

Regards,
Antonio Grasso



Mon, 30 Aug 2004 17:35:30 GMT  
 <option> Object
ASP has no knowledge of HTML/DOM elements. You would have to implement
functions/classes to output the correct HTML for given objects much as the
asp server side controls work in asp.net.

Joe


Quote:
> Hi at all!
> I wanto to create an <option> object using ASP(vbscript) and I write so :
>  <% set obj = new option() %>
> But I have this error : "Identificator missing"

> Could anyone help me ?

> Regards,
> Antonio Grasso



Mon, 30 Aug 2004 19:08:59 GMT  
 <option> Object
The code example is also an odd mixture of browser client side javascript -> new option() <- and vbscript -> set obj = ... <- used in a server side asp script block.

--
Michael Harris
Microsoft.MVP.Scripting
Seattle WA US
--

Quote:

> ASP has no knowledge of HTML/DOM elements. You would have to implement
> functions/classes to output the correct HTML for given objects much as the
> asp server side controls work in asp.net.

> Joe



> > Hi at all!
> > I wanto to create an <option> object using ASP(vbscript) and I write so :
> >  <% set obj = new option() %>
> > But I have this error : "Identificator missing"

> > Could anyone help me ?

> > Regards,
> > Antonio Grasso



Mon, 30 Aug 2004 23:15:41 GMT  
 <option> Object

Quote:

> Hi at all!
> I wanto to create an <option> object using ASP(vbscript) and I write so :
>  <% set obj = new option() %>
> But I have this error : "Identificator missing"

> Could anyone help me ?

> Regards,
> Antonio Grasso

Try the DOM with document.createElement method using <SELECT> as the
parameter.  Remember the <OPTION> tag is a "sub element" of the
<SELECT> tag.


Tue, 31 Aug 2004 01:53:10 GMT  
 <option> Object
Why bother creating the object?

<BODY>
    <select id="selCombo">
        <%
                Response.Write "<option value=1>First</option>" & vbCrLf
                Response.Write "<option value=2>Second</option>" & vbCrLf
                Response.Write "<option value=3>Third</option>" & vbCrLf
        %>
    </select>
</BODY>

I use the vbCrLf to keep the html source tidy.

Have I missed the point?

Regards, Paul.


Quote:
> Hi at all!
> I wanto to create an <option> object using ASP(vbscript) and I write so :
>  <% set obj = new option() %>
> But I have this error : "Identificator missing"

> Could anyone help me ?

> Regards,
> Antonio Grasso



Tue, 31 Aug 2004 19:27:25 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Master-Detial and TBDLookUp's

2. <<<<<<<<ComboBox>>>>>>>>>>>>

3. --------<<<<<<MONEY>>>>>>--------- id 9543

4. Help Needed with TRemote Server + Client Data Sets

5. HELP >>>>>>WIN API <<<<<<<<<<

6. help me out please!!!!<<<<<<<<<<<<<<<<<<<<<<<thanks>>>>>>>>>>>>>>>>>>>>>>>>

7. <><><>HELP<><><> PCMCIA Motorola Montana 33.6

8. <<<<HELP- OLE container Control>>>>>>>>>

9. VB5<->RDO2<->ODBC<->ORACLE Procedure Problem

10. <<<Cneck Box>>>

11. <<<Gif Files>>>

12. <<<CD ROM>>>

 

 
Powered by phpBB® Forum Software