User Profile

Collapse

Profile Sidebar

Collapse
Romulo NF
Romulo NF
Last Activity: Apr 11 '11, 12:59 PM
Joined: Nov 1 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Greetings,

    In fact there are lots of ways you can acomplish such thing, here are some examples:

    Code:
    Your browser name is <u><script type="text/javascript">document.write(whichBrs());</script></u>
    Or you can do something like:

    Code:
    Your browser name is <u id="yourBrowser"></u>
    
    <script>
    var myVar
    ...
    See more | Go to post

    Leave a comment:


  • check this link, i think it will solve your problem:

    http://www.quirksmode. org/js/findpos.html

    Regards,
    Romulo
    See more | Go to post

    Leave a comment:


  • I´ve made lots of changes, and i hope to post an english version of it when i have some free time!!
    See more | Go to post

    Leave a comment:


  • If i got it right thats more or less what you need

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    
    <html>
    <head>
    	<title>Dinamic Label</title>
    </head>
    
    <script>
    
    window.onload = function() {
    imgs = document.getElementsByTagName("img")
    images = new Array()
    ...
    See more | Go to post

    Leave a comment:


  • Not really! All you need to use the script is:

    - a table with standard markup (table, thead, tbody, tr, td, th)
    - load the js into the page
    - init the script using a onload event and passing the id of the table. i.e: dragTable(table ID)

    Just make sure the js is being loaded and then call the function, everything should work fine

    Good luck
    See more | Go to post

    Leave a comment:


  • Romulo NF
    replied to How to set textbox to readonly
    Actually you should use

    <input type="text" readonly="reado nly">

    Or using js you can

    Code:
    <input type="text" onclick=" if (!this.readOnly) { this.readOnly = 'readOnly' } else { this.readOnly = '' } ">
    See more | Go to post

    Leave a comment:


  • Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    
    <html>
    <head>
    	<title>Untitled</title>
    </head>
    
    <script>
    
    function changeUrl(url) {
    iframeElm = document.getElementById("myFrame")
    iframeElm.src = url
    }
    
    </script>
    
    <style>
    iframe {width:400px;
    ...
    See more | Go to post

    Leave a comment:


  • Romulo NF
    replied to Table - Columns drag & drop
    If you got into this topic consider looking my new column drag & drop script
    See more | Go to post

    Leave a comment:


  • Drag & Drop Table Columns (new version, explained)

    Greetings,

    I´m back here to show the new version of the drag & drop table columns (original script ). I´ve found some issues with the old script, specially when trying to use 2 tables with drag&drop on the same page (which was not possible). Now i´ve a new concept of the script, more object oriented.

    I´ve also commented the whole code so you guys can easier understand it engine.

    What exactly we need...
    See more | Go to post

  • If any admin gets here can you try to fix this topic? The above topic contains the js but using the [*code*] tag i couldnt manage to make the post visible. When everything is fixed delete this post also. I´d be grateful!
    See more | Go to post

    Leave a comment:


  • Romulo NF
    started a topic Grid table (add, remove, import, edit)

    Grid table (add, remove, import, edit)

    Greetings again to everyone,

    Im back to show this grid componenet i´ve developed. With this grid you can show the data like a normal table, remove the rows that you need, add rows, import data, call determined functions, and edit the data already present

    What will you need to use the grid? A table with standard markup and an ID to call the script that will turn the table into a grid

    Parameters:
    ...
    See more | Go to post
    Last edited by Romulo NF; Dec 3 '07, 08:14 PM. Reason: fixing the topic

  • Romulo NF
    replied to Table Highlighting On Click
    Another way of doing it

    file: js
    Code:
    window.onload = function() {
    tableOne = new hightlightTable("myTable")
    }
    
    function hightlightTable(tableId) {
    this.table = document.getElementById(tableId)
    this.rows = this.table.tBodies[0].getElementsByTagName("tr")
    this.cells = this.table.tBodies[0].getElementsByTagName("td")
    	
    	for (x=0; x<this.cells.length;
    ...
    See more | Go to post

    Leave a comment:


  • Romulo NF
    started a topic Table with filtering to the content

    Table with filtering to the content

    Greetings again everyone
    Recently i´ve been asked to develop a script to allow filtering in the content of the table, with dinamic options based on the own content. Example: a table with the name of some students and their respective numbers, and then you wanna show only studentes called "Joao", or students with number "5", or even only students called "joao" with number "5".

    The structure...
    See more | Go to post

  • Romulo NF
    replied to expanding and collapsing
    Hello,

    I was just explaining the code, it wasnt me who created it
    And unfortunately i dont have a mac to test the issues you found on safari

    But i hope you can fix it and share the solution with us :)
    Good luck
    See more | Go to post

    Leave a comment:


  • Romulo NF
    replied to getElementById multiple Id's
    [code=javascript]
    window.onload = function() {
    tds = document.getEle mentsByTagName( "td")
    for (x=0; x<tds.length; x++) {
    tds[x].onclick = colorIt
    }
    }

    function colorIt() {
    if (!this.color) { this.color = "off" }

    if (this.color == "off") {
    this.color = "on"
    this.style.back ground = "#000"
    }...
    See more | Go to post
    Last edited by pbmods; Aug 31 '07, 09:35 PM. Reason: Changed [CODE] to [CODE=javascript].

    Leave a comment:


  • Parent HTML
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    
    <html>
    <head>
    	<title>Untitled</title>
    </head>
    
    <style>
    iframe {height:200px; width:300px; border:1px solid #000}
    </style>
    
    <script>
    function iframeContent() {
    frame = document.getElementById("myFrame")
    ...
    See more | Go to post

    Leave a comment:


  • Romulo NF
    replied to how to grey-out a DIV tagged section
    [CODE=html]
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

    <html>
    <head>
    <title>Untitled </title>
    </head>

    <style>
    body {margin:15px; text-align:auto}
    .holder {margin:5px auto; height:100px; width:500px; border:1px solid #000;}
    </style>

    <script>

    function disableDiv(elm)...
    See more | Go to post
    Last edited by gits; Jul 26 '07, 07:00 AM. Reason: fix CODE tags

    Leave a comment:


  • Code:
    function hide(id) {
    elm = document.getElementById(id)
    
    elm.style.display == "none" ? elm.style.display = "block" : elm.style.display = "none"
    }
    
    document.onmousedown = function() {
    hide('hide')
    }
    Code:
    <div style="height:100px; width:100px; border:1px solid #000" id="hide"></div>
    ...
    See more | Go to post

    Leave a comment:


  • Romulo NF
    replied to Dynamically Writing Calendar
    Post some piece of code
    Like the "Calendar.setup ()" function you are trying to use

    Or it will be impossible to help!
    See more | Go to post

    Leave a comment:


  • Code:
    <table id="anyId">
    	<thead>
    		<tr>
    			<td>HEAD 1</td>
    			<td>HEAD 2</td>
    			<td>HEAD 3</td>
    			<td>HEAD 4</td>
    			<td>HEAD 5</td>
    		</tr>
    	</thead>
    	<tbody>
    		<tr>
    			<td>BODY A 1</td>
    			<td>BODY A 2</td>
    			<td>BODY
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...