SitePoint Sponsor

User Tag List

Results 1 to 8 of 8

Thread: INPUT TYPE=""?

  1. #1
    SitePoint Enthusiast
    Join Date
    Dec 2004
    Location
    malaysia
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    INPUT TYPE=""?

    I found tt input type just got text, file, hidden, password, button, image or something else lah. But it do not have label. if I want to change value by radio button and pass the radio button value to a input text, I can done it but the text.value may change by other. I mean Keyboard key in or wat. I just want to ask got method or function, or even a input type that I do not know, that can function as like Label In Visual Basic....

  2. #2
    SitePoint Guru momos's Avatar
    Join Date
    Apr 2004
    Location
    Belgium
    Posts
    919
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you can give a value to a radio-button, which will then be the same as your label in your example if I understand it correctly

  3. #3
    SitePoint Enthusiast
    Join Date
    Dec 2004
    Location
    malaysia
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i got a.html n b.html.
    a.html call function

    function openPopWin(url)
    {
    popUpComment=window.open(url,'comments','toolbar=0,location=no,directories=0,status=1,menubar=0,scrollbars=0,resizable=0,width=600,height=400,left=1,right=1,top=0');
    if (navigator.appName == 'Netscape')
    {
    alert("Sorry! No support Nescape!");
    }
    }

    then will go to next window, that is b.html. after that i take value in a.html to pass to b.html

    function init1(){

    leader.value=window.opener.conet.value;
    }

    after i do something in leader.value, I want to pass it back to a.html
    function submit1(){
    window.opener.conet.value= leader.value;
    //window.opener.location.reload();
    self.close();

    }
    until here is no problem. I want to ask, Can I change the "conet", the code is <input name="conet" type="text" value="Hello">, right? beside using the text, what type I can use? Because when I using "text", It got frame. I dont want it.

  4. #4
    CSS & JS/DOM Adept bronze trophy
    Join Date
    Mar 2005
    Location
    USA
    Posts
    5,482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What are you checking for Netscape?

    Those object references seem to be in an IE only format.

    Your English could use improvement... I'm not sure what you are asking.
    We miss you, Dan Schulz.
    Learn CSS. | X/HTML Validator | CSS validator
    Dynamic Site Solutions
    Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.

  5. #5
    SitePoint Enthusiast
    Join Date
    Dec 2004
    Location
    malaysia
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I just want to ask, is there got other type of Input? We always use <Input type="Text">.Now I do not want to be like that. I want to have a type that is can function as like type="Text" but Do Not Have Frame. Just Like Label.

    Thank.
    Sorry For my English. Hope you understand.

  6. #6
    CSS & JS/DOM Adept bronze trophy
    Join Date
    Mar 2005
    Location
    USA
    Posts
    5,482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use CSS to style the input. It won't work in all browsers, but there isn't any other way that doesn't require a lot of JavaScript.
    We miss you, Dan Schulz.
    Learn CSS. | X/HTML Validator | CSS validator
    Dynamic Site Solutions
    Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.

  7. #7
    SitePoint Enthusiast
    Join Date
    Dec 2004
    Location
    malaysia
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Kravvitz
    Use CSS to style the input. It won't work in all browsers, but there isn't any other way that doesn't require a lot of JavaScript.
    may i know how to style it? Can you write it for me to refer?

  8. #8
    CSS & JS/DOM Adept bronze trophy
    Join Date
    Mar 2005
    Location
    USA
    Posts
    5,482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here's an example using inline styles.
    Code:
    <input type="text" style="border:0 none;background-color:inherit;" name="myname">
    We miss you, Dan Schulz.
    Learn CSS. | X/HTML Validator | CSS validator
    Dynamic Site Solutions
    Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •