<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1011901" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1011901</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/resorting-webpage-items-asp-javascript-how-start#comment-1068622</link>
    <description> &lt;p&gt;Thanks taz! I&#039;ll try out the coding and put my researching on sql and asp on hold.&lt;/p&gt;
&lt;p&gt;Sabrina&lt;/p&gt;
 </description>
     <pubDate>Tue, 01 Aug 2000 00:51:55 +0000</pubDate>
 <dc:creator>SabrinaP</dc:creator>
 <guid isPermaLink="false">comment 1068622 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/resorting-webpage-items-asp-javascript-how-start#comment-1068621</link>
    <description> &lt;p&gt;Okay Sabrina:&lt;/p&gt;
&lt;p&gt;Given that you are under an education crunch, I threw together a quick application.  It works, but needs to be dressed up.&lt;/p&gt;
&lt;p&gt;1) Here is your frames page.&lt;/p&gt;
&lt;p&gt;Contents&lt;/p&gt;
&lt;p&gt;This document requires a browser that can view frames.&lt;/p&gt;
&lt;p&gt;2) here is your left sidebar page&lt;/p&gt;
&lt;p&gt;&amp;lt;script LANGUAGE=&quot;Javascript&quot;&amp;gt;&lt;br /&gt;
function sequence(order){&lt;br /&gt;
	books=new Array(100);//Main data array containing book data--set to number of records necessary!!&lt;br /&gt;
	i=0;//record counter&lt;br /&gt;
	books[i]=&quot;Author|Title|Date|Subject&quot;;i++;//header record&lt;br /&gt;
	books[i]=&quot;Smith,Joe|Over the hill|1999/10/1|Aging&quot;;i++;&lt;br /&gt;
	books[i]=&quot;Doe,Jane|See Spot Run|1901/1/15|Early Childhood Development&quot;;i++;&lt;br /&gt;
	books[i]=&quot;Canter, Jeff|Running in Place|1965/2/5|Career Advancement&quot;;i++;&lt;br /&gt;
	books[i]=&quot;Martin, Austin|Oilspots on the Driveway|1978/5/1|Auto Repair&quot;;i++;&lt;br /&gt;
	total_books=i-1;&lt;br /&gt;
	fields=new Array(4);&lt;br /&gt;
	if(order==&quot;A&quot;){&lt;br /&gt;
		fields[0]=0;&lt;br /&gt;
		fields[1]=1;&lt;br /&gt;
		fields[2]=2;&lt;br /&gt;
		fields[3]=3;&lt;br /&gt;
	}else if(order==&quot;T&quot;){&lt;br /&gt;
		fields[0]=1;&lt;br /&gt;
		fields[1]=0;&lt;br /&gt;
		fields[2]=2;&lt;br /&gt;
		fields[3]=3;&lt;br /&gt;
	}else if(order==&quot;D&quot;){&lt;br /&gt;
		fields[0]=2;&lt;br /&gt;
		fields[1]=0;&lt;br /&gt;
		fields[2]=1;&lt;br /&gt;
		fields[3]=3;&lt;br /&gt;
	//default to Subject&lt;br /&gt;
	}else{&lt;br /&gt;
		fields[0]=3;&lt;br /&gt;
		fields[1]=0;&lt;br /&gt;
		fields[2]=1;&lt;br /&gt;
		fields[3]=2;&lt;br /&gt;
	}&lt;br /&gt;
	top.main.document.open;&lt;br /&gt;
	top.main.document.write(&#039;&#039;);&lt;br /&gt;
	top.main.document.write(&#039;Booklist&#039;);&lt;br /&gt;
	sequenced_array=new Array(total_books);&lt;br /&gt;
	sorted_array=new Array(total_books);&lt;br /&gt;
	header=new String();&lt;br /&gt;
	for(j=0;j&amp;lt;=total_books;j++){&lt;br /&gt;
		temp_array=new Array(4);&lt;br /&gt;
		sequenced_record=new Array(4);&lt;br /&gt;
		sorted_array=new Array(total_books);&lt;br /&gt;
		temp_string=new String(books[j]);&lt;br /&gt;
		temp_array=temp_string.split(&quot;|&quot;);&lt;br /&gt;
		for(k=0;k&amp;lt;4;k++){&lt;br /&gt;
			sequenced_record[k]=temp_array[fields[k]];&lt;br /&gt;
		}&lt;br /&gt;
		if(j==0){&lt;br /&gt;
			header=sequenced_record.join(&quot;|&quot;);&lt;br /&gt;
		}else{&lt;br /&gt;
			sequenced_array[j]=sequenced_record.join(&quot;|&quot;);&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
	sorted_array=sequenced_array.sort();&lt;br /&gt;
	top.main.document.write(header+&quot;&quot;);&lt;br /&gt;
	for(j=0;j&quot;);&lt;br /&gt;
	}&lt;br /&gt;
	top.main.document.write(&#039;&#039;);&lt;br /&gt;
	top.main.document.close();&lt;br /&gt;
}//end of function sequence&lt;br /&gt;
&amp;lt;/script&amp;gt; &lt;/p&gt;
&lt;p&gt;List Books by &lt;/p&gt;
&lt;p&gt;&lt;A href=&#039;sequence(&amp;quot;A&amp;quot;);&#039;&gt;Author&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;&lt;A href=&#039;sequence(&amp;quot;T&amp;quot;);&#039;&gt;Title&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;&lt;A href=&#039;sequence(&amp;quot;D&amp;quot;);&#039;&gt;Date&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;&lt;A href=&#039;sequence(&amp;quot;S&amp;quot;);&#039;&gt;Subject&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;Save them both off in a single directory.  Load the main frames page.  Click on the sequence by links in the left frame and the results display in the main frame.&lt;/p&gt;
&lt;p&gt;You can take the code and play around with it.&lt;/p&gt;
&lt;p&gt;Tazman &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;[Edited by tazman on 07-31-2000 at 08:16 PM]&lt;/p&gt;
 </description>
     <pubDate>Tue, 01 Aug 2000 00:11:28 +0000</pubDate>
 <dc:creator>tazman</dc:creator>
 <guid isPermaLink="false">comment 1068621 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/resorting-webpage-items-asp-javascript-how-start#comment-1068600</link>
    <description> &lt;p&gt;Sabrina:&lt;/p&gt;
&lt;p&gt;Sorry I have not contributed to the thread, but I was out of town (although Vinny has it well under control!).&lt;/p&gt;
&lt;p&gt;I would recommend that you take a a look at the mySQL as a database to use on the server.  They do have both a UNix/Linux and DOS based version.  I have used it extensively and have nothing but positives to say about it.  That only addresses one aspect of your application (and that is really what you are looking at not just some miscellaneous code).  Learn more about javascript, also spend some time on perl.  They will both do you well!!  The learning curve differs by person and obviously time availability.&lt;/p&gt;
&lt;p&gt;I would concur with Vinny that you should not tackle the site until you have done a bit more legwork.&lt;/p&gt;
&lt;p&gt;Tazman.&lt;/p&gt;
&lt;p&gt;Hi Vinny:&lt;/p&gt;
&lt;p&gt;Yep, I was working on my post at the same time you were, so when I put it up, I was interested in seeing your approach.  As you said, it is always intriguing to see the solution from a different angle!! &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;br /&gt;
Tazman&lt;/p&gt;
&lt;p&gt;[Edited by tazman on 07-31-2000 at 08:13 PM]&lt;/p&gt;
 </description>
     <pubDate>Mon, 31 Jul 2000 22:11:02 +0000</pubDate>
 <dc:creator>tazman</dc:creator>
 <guid isPermaLink="false">comment 1068600 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/resorting-webpage-items-asp-javascript-how-start#comment-1068582</link>
    <description> &lt;p&gt;Hi Sabrina,&lt;/p&gt;
&lt;p&gt;   I can&#039;t tell you what to learn since it would depend on what you already know and have.  For example, if you are comfortable with javascript, php might be the way to go.  If you know basic, try asp.  In either case, you will need a database to store the data.  The usual inexpensive choices are mySQL or Access -- the former is usually run on Unix servers; the latter you run under windows.&lt;br /&gt;
  Given the amount of time you have before school starts, you might want to leave your site as is and simply learn more javascript -- you will eventually need to learn that well, anyway.&lt;/p&gt;
&lt;p&gt;Vinny&lt;/p&gt;
 </description>
     <pubDate>Mon, 31 Jul 2000 19:40:30 +0000</pubDate>
 <dc:creator>Vincent Puglia</dc:creator>
 <guid isPermaLink="false">comment 1068582 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/resorting-webpage-items-asp-javascript-how-start#comment-1068473</link>
    <description> &lt;p&gt;Okay, I&#039;m sorry for being so &#039;beginnerish&#039;. School&#039;s starting soon and I&#039;m worried more time will be spent on learning a language (an application for that matter) than finishing off my site. I thought I could take the easy way out on this. I took a glance at your site, and I&#039;ll return to it. &lt;/p&gt;
&lt;p&gt;What would be the best recommended language to use to ease the load? I&#039;ll start reading up on it and come back to this forum whenever I may need the occasional help from someone.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;
Sabrina  &lt;/p&gt;
&lt;p&gt;24 days until I start with the textbooks! Oh joy! &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/sad.png&quot; title=&quot;Sad&quot; alt=&quot;Sad&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;[Edited by SabrinaP on 07-30-2000 at 01:38 AM]&lt;/p&gt;
 </description>
     <pubDate>Sun, 30 Jul 2000 05:35:40 +0000</pubDate>
 <dc:creator>SabrinaP</dc:creator>
 <guid isPermaLink="false">comment 1068473 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/resorting-webpage-items-asp-javascript-how-start#comment-1068472</link>
    <description> &lt;p&gt;Hi Sabrina,&lt;/p&gt;
&lt;p&gt;   (I&#039;m sure tazman would agree -- at least in general principle -- with what I&#039;m going to say)&lt;/p&gt;
&lt;p&gt;   Don&#039;t want to bust your bubble, but...this little task you are in the process of undertaking is no little bit of cut &amp;amp; paste code. You are trying to write an application, not a little snippet of javascript. What both he and I outlined for you (note the word outlined? It means it&#039;s not thought-out, won&#039;t work first time out, probably not even tenth time out) is only part of what you would need to do. You would still need to provide a form and then code to access the data.  And, if you wanted it to look &#039;pretty&#039;, you would need more code.  And, if you wanted it be fast, you would have to work on it some more.&lt;br /&gt;
   Did you look at the Rolodex scripts at my site? The arguments object script? Did you understand them? If not, you are in deep.&lt;/p&gt;
&lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote:&lt;br /&gt;
 I guess you can say I&#039;m more of a beginner at javascript
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;  To all beginners I meet, I suggest the following:&lt;br /&gt;
  1) &lt;a href=&quot;http://www.htmlgoodies.com&quot; class=&quot;bb-url&quot;&gt;http://www.htmlgoodies.com&lt;/a&gt; -- the javascript primer&lt;br /&gt;
  2) SAM&#039;s Javascript in 24 hours&lt;br /&gt;
  3) The BareBones Guide to HTML -- an HTML document somewhere on the web&lt;br /&gt;
  4) rightClicking on sites that interest you, downloading them, and modifying their code to see what makes it tick.&lt;/p&gt;
&lt;p&gt;  To all novices and experts who are not afraid of books, I recommend:&lt;br /&gt;
  1)  Danny Goodman&#039;s Javascript Bible, and&lt;br /&gt;
  2) any book by O&#039;Reilly publishers.&lt;/p&gt;
&lt;p&gt;Hi tazman:  &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;br /&gt;
  Love the different approach. Interesting to see how other minds work. &lt;/p&gt;
&lt;p&gt;Vinny&lt;/p&gt;
&lt;p&gt;[Edited by Vincent Puglia on 07-30-2000 at 01:21 AM]&lt;/p&gt;
 </description>
     <pubDate>Sun, 30 Jul 2000 05:16:52 +0000</pubDate>
 <dc:creator>Vincent Puglia</dc:creator>
 <guid isPermaLink="false">comment 1068472 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/resorting-webpage-items-asp-javascript-how-start#comment-1068458</link>
    <description> &lt;p&gt;Okay, I&#039;ve read both messages. I understand that these variables go within  coding, but I don&#039;t know where to apply them in my html file... what goes in the  tag, or  tag within the book title, author, etc. I guess you can say I&#039;m more of a beginner at javascript (heck, at least it&#039;s better than knowing nothing about PHP, SQL, ASP, etc.). I often go to those free javascript coding places and edit the coding learning it along the way). &lt;/p&gt;
&lt;p&gt;What would really help me out (and save lots of time) is that I read through the coding of a premade html file which contains that javascript coding (as both of you mentioned) so I get a better idea and better chance of editing out the coding to my advantage. If you know a site that has the same concept - resorting items with javascript coding used, I&#039;d love to see it!&lt;/p&gt;
&lt;p&gt;BTW, I am also hoping to allow users not only sort books by the title and author, but also by the publisher&#039;s date (when the book was published).&lt;/p&gt;
&lt;p&gt;Sabrina&lt;/p&gt;
&lt;p&gt;In the mean time, I will hunt the web for a site with the javscript coding.&lt;/p&gt;
 </description>
     <pubDate>Sun, 30 Jul 2000 01:28:21 +0000</pubDate>
 <dc:creator>SabrinaP</dc:creator>
 <guid isPermaLink="false">comment 1068458 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Javascript Array in a nutshell</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/resorting-webpage-items-asp-javascript-how-start#comment-1068440</link>
    <description> &lt;p&gt;How to define your arrays first:&lt;/p&gt;
&lt;p&gt;books_array=new Array(1000); // 1000 = the # of elements&lt;/p&gt;
&lt;p&gt;detail_array=new Array(10); // use to store book info&lt;/p&gt;
&lt;p&gt;--To store the content in your html, you could assign the content to the books_array using a deliminated method.&lt;/p&gt;
&lt;p&gt;books_array[1]=&quot;Author_last, Author First, Subject, Title, Description&quot;;&lt;br /&gt;
books_array[2]]=&quot;Author_last2, Author First2, Subject2, Title2, Description2&quot;;&lt;/p&gt;
&lt;p&gt;--When you wish to sort by a different index (Author_last, Title, etc) you will need to do two things, access that field and also track how the fields correlate.&lt;/p&gt;
&lt;p&gt;--One method would be to use the split function on each array element to re-order the field sequence.&lt;/p&gt;
&lt;p&gt;new_array=new Array(1000);&lt;/p&gt;
&lt;p&gt;//split the main books_array element into fields using&lt;br /&gt;
//the .split function&lt;br /&gt;
sequence_shift=books_array[1].split(&quot;,&quot;);&lt;/p&gt;
&lt;p&gt;//reassemble a new order with the field you wish to sort by in the primary position&lt;br /&gt;
new_element = sequence_shift[2]+sequence_shift[0]+sequence_shift[1]+sequence_shift[3]+sequence_shift[4];&lt;/p&gt;
&lt;p&gt;//assign to new sorted_array&lt;br /&gt;
new_array[1]=new_element;&lt;/p&gt;
&lt;p&gt;--you would obviously do this in a for/next loop sequence to catch all the elements and automate the field sequencing.&lt;/p&gt;
&lt;p&gt;--Once you have assembled your new array (sorted_array), use the .sort function&lt;/p&gt;
&lt;p&gt;sorted_array=new Array(1000);&lt;br /&gt;
sorted_array=new_array.sort();&lt;/p&gt;
&lt;p&gt;You now have a new array sequenced by Subject..&lt;/p&gt;
&lt;p&gt;Run a for/next loop to output the displayed info.&lt;/p&gt;
&lt;p&gt;Disclaimers:&lt;br /&gt;
1) This is a poor way to do what you wish, I much prefer sql-database.&lt;br /&gt;
2) If the Array&#039;s are too large, it could cause processing probs.&lt;br /&gt;
3} I am sure that there are a bunch of slicker ways to do this, I just banged out a quicky for you.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Tazman&lt;/p&gt;
 </description>
     <pubDate>Sat, 29 Jul 2000 19:27:54 +0000</pubDate>
 <dc:creator>tazman</dc:creator>
 <guid isPermaLink="false">comment 1068440 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/resorting-webpage-items-asp-javascript-how-start#comment-1068438</link>
    <description> &lt;p&gt;Hi Sabrina,&lt;/p&gt;
&lt;p&gt;  &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/sad.png&quot; title=&quot;Sad&quot; alt=&quot;Sad&quot; class=&quot;smiley-content&quot; /&gt; Sorry to say there is no script on my site that does exactly what you&#039;re asking. However, I won&#039;t mind if you look through the scripts, anyway. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;br /&gt;
  Because I don&#039;t know your javascript comfort level: You might find the following scripts interesting and/or helpful -- the arguments object and dynamically creating selection lists (The Learning Center) and Rolodex (I, Object).&lt;br /&gt;
  Since I don&#039;t have enough info and because you&#039;re willing to get down and dirty, much of this will be general. It will also be disjointed because I&#039;m writing this and doing other things at the same time -- sorry &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;br /&gt;
  You will have to create arrays for each of the items you want to search on -- author, title, etc.  The arrays could look like:&lt;br /&gt;
   var myTitles = new Array();&lt;br /&gt;
   myTitles[0] = &quot;100 Years of Solitude|0&quot;;&lt;br /&gt;
   myTitles[1] = &quot;the Sound and Fury|1&quot;;&lt;/p&gt;
&lt;p&gt;   var myAuthors = new Array();&lt;br /&gt;
   myAuthors[0] = &quot;Marquez, Garbriel Garcia|0&quot;;&lt;br /&gt;
   myAuthors[1] = &quot;Faulkner, William|1&quot;;&lt;/p&gt;
&lt;p&gt;Note the vertical bar and number at the end of the string: you can use that number to access the other arrays by using the split() method -- arrayName[i].split(&quot;|&quot;)&lt;/p&gt;
&lt;p&gt;  You loop through the array based on the user selection, get the embedded index number and use it to access the other arrays:&lt;/p&gt;
&lt;p&gt;   arrayName.sort();&lt;br /&gt;
   for (i=0;i&lt;/p&gt;
 </description>
     <pubDate>Sat, 29 Jul 2000 19:05:38 +0000</pubDate>
 <dc:creator>Vincent Puglia</dc:creator>
 <guid isPermaLink="false">comment 1068438 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/resorting-webpage-items-asp-javascript-how-start#comment-1068437</link>
    <description> &lt;p&gt;Whoah! Okay, first of all, the content is typed in a html page. I&#039;ll stick to the javascript arrayName.sort() method. I wouldn&#039;t mind putting all my data in arrays. As for the server, my site will be hosted on a server that supports ASP data. Admittingly, I don&#039;t want to go into ASP because I don&#039;t have the time to learn another computer language. I&#039;ll stick with the javascript, and I&#039;ll risk getting my fingers dirty if I have to.&lt;/p&gt;
&lt;p&gt;Tell me what I have to do, or if it&#039;s at your site, I&#039;d like to know which section to go through. I saw 4 menus and don&#039;t know where to go to in accomplish this sort of task.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;br /&gt;
Sabrina&lt;/p&gt;
 </description>
     <pubDate>Sat, 29 Jul 2000 18:12:24 +0000</pubDate>
 <dc:creator>SabrinaP</dc:creator>
 <guid isPermaLink="false">comment 1068437 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
