Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+4
Strength to Decrease Rep
-1
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
~18.6K People Reached
Favorite Tags
Member Avatar for ajwei810192

Hi, I have the code as in the following: [CODE] <?php $name= "Test"; $phone= "123-456-7890"; $email = "myemail@mymail.com"; $comments = "Test Only"; $string = "<message>\n<name>" . $name . "</name>\n<phone>" . $phone . "</phone>\n<email>". $email . "</email>\n<comments>" . $comments . "</comments>\n</message>"; //If file exists. append, otherwise create $file = "messages.xml"; $fh …

Member Avatar for ajwei810192
0
152
Member Avatar for ajwei810192

Hi, I have a code here as in the following: [CODE] <div id="main"> <h1>Test</h1> <pre>Test Only</pre> </div> [/CODE] Here is the CSS: [CODE]#main { width:55%; border:0; padding:4em 2em 4em 24em; } #main h1 { color:blue; padding-top:1.75em; font-size:24px; padding-left:6em; font-family:Garamond,Arial,sans-serif } #main pre { font:bold 12px helvetica,sans-serif; padding-left:4em }[/CODE] For some …

Member Avatar for drsim
0
79
Member Avatar for ajwei810192

I have an XML here as follows, [CODE] <?xml version="1.0" encoding="ISO-8859-1"?> <countries> <country> <text>Norway</text> </country> <country> <text>Sweden</text> </country> <country> <text>France</text> </country> <country> <text>Italy</text> </country> </countries> [/CODE] And, I am trying to sort it without using XSLT, and I am not using this to edit the XML file. I only would …

Member Avatar for ajwei810192
0
974
Member Avatar for ajwei810192

Hi, I wonder if anyone on this list has tried to mix numerical variable, such as 1, 2,3 within an xpath expression. [CODE]songList = document.SelectNodes("/music_songs/song[category='" & drop1.SelectedItem.Text & "'][item_number_first<=position()<=item_number_last]") [/CODE] For some reason, item_number_first and item_number_last appear to have no value in the above code snippet, when they do have …

Member Avatar for ajwei810192
0
114
Member Avatar for ajwei810192

Hi, I have an application as in the following, [CODE] <%@ Import Namespace="System.Data" %> <%@ Import Namespace="System.XML" %> <script runat="server"> Sub submit(ByVal sender As Object, ByVal e As EventArgs) songNodesOut.Text = String.Empty If Page.IsPostBack Then mess.Text = "<p style='margin-left:-2em'>You selected <b>" & drop1.SelectedItem.Text & "</b></p>" End If Dim file As …

Member Avatar for kvprajapati
1
148
Member Avatar for ajwei810192

Hi, I wonder if anyone on this list has tried to mix numerical variable, such as 1, 2,3 within an xpath expression. [CODE]songList = document.SelectNodes("/music_songs/song[category='" & drop1.SelectedItem.Text & "'][item_number_first<=position()<=item_number_last]")[/CODE] For some reason, item_number_first and item_number_last appear to have no value in the above code snippet, when they do have values …

Member Avatar for ajwei810192
0
61
Member Avatar for ajwei810192

Hi, I have the following code that I would like to get working, but for some reason, it keeps giving me the wrong output, and I wonder if anyone on the list might be able to help me fix it. Here is the code, [CODE] Sub submit(ByVal sender As Object, …

Member Avatar for ajwei810192
0
99
Member Avatar for ajwei810192

Hi, I have an XML snippet as in the following: [CODE]<music_songs> <song> <title>(I Just) Died In Your Arms</title> <category>Rock</category> <album>80 Popular Hits</album> <artist>Cutting Crew</artist> <date added="03-24-2009"/> </song> </music_songs>[/CODE] Thiis is one of the songs out of 5 categories I have, and currently I use XPath expression as in the following: …

Member Avatar for ajwei810192
0
6K
Member Avatar for ajwei810192

Hi, I have a question regarding an issue on submitting a form multiple times. For some reason, my form takes one submit, but then the others, I don't see changes of result. Here is the app: [CODE] <%@ Import Namespace="System.Data" %> <%@ Import Namespace="System.XML" %> <script runat="server"> Sub submit(ByVal sender …

Member Avatar for ajwei810192
0
119
Member Avatar for ajwei810192

Hi, I have the code as in the following: [CODE] Sub submit(ByVal sender As Object, ByVal e As EventArgs) songNodesOut.Text = String.Empty Dim file As String = Context.Server.MapPath("alice_music_list2.xml") Dim document As XmlDocument = New XmlDocument() document.Load(file) Dim songList As XmlNodeList songList = document.SelectNodes("/music_songs/song[category='" & drop1.SelectedItem.Text & "']") Dim songDisplay As …

0
71
Member Avatar for ajwei810192

Hi, I have a question regarding an issue on submitting a form multiple times. For some reason, my form takes one submit, but then the others, I don't see changes of result. Here is the app: [CODE] <%@ Import Namespace="System.Data" %> <%@ Import Namespace="System.XML" %> <script runat="server"> Sub submit(ByVal sender …

0
59
Member Avatar for ajwei810192

Hi, I am wondering if anyone on the list could help me search an xml file based on the user input. Right now, I have two separate files, one that shows all the data from an xml file, and the other is a simple web form with a button like …

Member Avatar for ajwei810192
0
533
Member Avatar for ajwei810192

Hi, I am wondering what I might be doing wrong here regarding getting the XML Attribute of my xml file, here is a snippet: [CODE]<music_songs> <song> <title>(I Just) Died In Your Arms</title> <date added="03-24-2009" /> </song> </music_songs> [/CODE] Here is my code, [CODE]<%@ Import Namespace="System.Data" %> <%@ Import Namespace="System.XML" %> …

Member Avatar for ajwei810192
0
130
Member Avatar for ajwei810192

Hi, I have written up this simple asp.net page that pulls data from a long xml file and shows information in a table format. Everything is working properly, except that I cannot get the scrollbar to work. So, if I want to read the stuff that is on the lower …

Member Avatar for ajwei810192
0
305
Member Avatar for ajwei810192

Hi, I wonder if anyone has tried to have multiple subroutines in ASP.NET and have one call the other. For example, if the first one is called message(), and second is login(), if login() tries to call message(), how do you do that? Or, is this not a common practice …

Member Avatar for Freon22
0
116
Member Avatar for ajwei810192

I have a ASP.NET snippet where I would like xsl to apply to the xml. For some reason, I get runtime errors when I use TransformFile to try and transform the xml. Here is the aspx, <%@ Import Namespace="System.Data" %> [CODE] <form runat="server"> <asp:Repeater ID="myMusic" runat="server" DataSourceID="XmlDataSource1"> <HeaderTemplate> <table class="songs"> …

Member Avatar for dnanetwork
0
192
Member Avatar for ajwei810192

Hi, I have an XML file that attaches an xsl stylesheet using version that has sorting function at the beginning of the file. At the same time, eason, I would like to put in some other information in the beginning, such as html headers as well. Here is my code: …

Member Avatar for ajwei810192
0
183
Member Avatar for ajwei810192

Hi, I have been trying to use multiple sorts on a long xml file using XSLT 2.0, which each one of the xml elements look like: [CODE]<song> <title>(I Just) Died In Your Arms Tonight</title> <category>Rock</category> <album>80 Popular Hits</album> <artist>Cutting Crew</artist> <date added="02-03-2009"/> </song>[/CODE] This is my XSL snippet, and I …

Member Avatar for ajwei810192
0
366
Member Avatar for ajwei810192

Hi, I am really new at ASP.NET, and I am wondering if there is a good way to extract XML attributes from ASP.NET. The example I am reading is here: [url]http://www.w3schools.com/aspnet/aspnet_datalist.asp[/url] Suppose I fix the XML snippet to: [CODE] <catalog> <cd> <title>Eros</title> <artist country="EU">Eros Ramazzotti</artist> <company>BMG</company> <price>9.90</price> <year>1997</year> </cd> </catalog> …

Member Avatar for ajwei810192
0
135
Member Avatar for ajwei810192

Hi, I have the code here as in the following: [CODE] <%@ Import Namespace="System.Data" %> <%@ Page Language="C#" Debug="true" %> <script runat="server"> sub Page_Load if Not Page.IsPostBack then dim mycdcatalog=New DataSet mycdcatalog.ReadXml(MapPath("alice_music_list.xml")) cdcatalog.DataSource= mycdcatalog cdcatalog.DataBind() end if end sub </script> <html> <body> <form runat="server"> <asp:Repeater id="cdcatalog" runat="server"> <HeaderTemplate> <table style=";font-family:Arial;width:56%;margin:1em …

Member Avatar for ajwei810192
0
447
Member Avatar for ajwei810192

Hi, I have a snippet of CSS as follows: [CODE] #navbar { position: absolute; top: 75px; right: 4px; padding: 2px 0 2px 32px; white-space: nowrap; background: #629632; } #navbar ul { display:block; font-size:12px; height:1px; list-style:none; padding-bottom:1.3em; } #navbar a { display:block; text-decoration:none; color:#FFFFFF; font-size:12px; font-weight:bold; padding: 2px 0.5em 1px; width:8em; …

Member Avatar for Jansz36
0
79
Member Avatar for ajwei810192

Hi, I wonder if anyone has tried to implement PHP with Javascript. I have the code here like this: if($name=='Mary') { echo "<script type=\"text/javascript\">window.alert(\"Hi, Your Name is " . $name . " \")</script>"; } For some reason, I don't get anything on the screen. Could I embed javascript in PHP …

Member Avatar for ajwei810192
0
105
Member Avatar for adobe71
Re: IIS

My website contains database,which runs successfully in visual studio 2008,but when I put it in \wwwroot in IIS, database not working.PLS solve my problem.

Member Avatar for ajwei810192
0
112
Member Avatar for ajwei810192

Hi, I am wondering if anyone in this discussion forum uses some sort of web hosting service. Is there one that is free that supports Ajax, PHP, MySQL and ASP.NET? The one I use only supports PHP and MySQL. Anything is appreciated.

0
60
Member Avatar for ajwei810192

Hi, I have a line of text here: Directions: Take the #8 from Meadow Park(31), and get off at Kroger East (57). I am trying to get it to match both (31) and (57), which some other context may have different numbers, but there could be either 1 or 2 …

Member Avatar for pritaeas
0
66
Member Avatar for ajwei810192

Hi, I have a code snippet here as in the following: [CODE] if(preg_match("(Mon|Tue|Wed|Thu|Fri)/i", $keywords[$i])) { $day_query ="start_time.day='12345' AND end_time.day='12345'"; } if(preg_match("Sat/i", $keywords[$i])) { $day_query = "start_time.Sat_route != 'NULL' AND end_time.Sat_route != 'NULL'"; } else { echo $keywords[i] . " is not a term that exists in the database. Make sure …

Member Avatar for MVied
0
81
Member Avatar for ajwei810192

Hi, I am wondering if anyone tried to mix PHP and Javascript innerHTML elements to change certain elements to decrease the number of submits without losing data when passing through forms. For some reason, I kept getting errors in my code and I could only get PHP to submit the …

Member Avatar for JRM
0
179
Member Avatar for ajwei810192

This is an example I have grabbed from W3School, and for the purpose of my question, I have modified it and put in the code here: [CODE] <?php // Make a MySQL Connection mysql_connect("localhost", "admin", "1admin") or die(mysql_error()); mysql_select_db("test") or die(mysql_error()); // Get all the data from the "example" table …

Member Avatar for rajarajan2017
0
123
Member Avatar for ajwei810192

Hi, It is kind of difficult to explain what I am trying to do here, I will provide the form here to give a better idea. <ul> <li>Select the type of your starting point of interest:<br/> <div id="start_menu"><form action="test_getrss.php" name="form1" method="post"> <span><input type="radio" value="Apartment" name="start" onclick="check(document.form1.start)"/> Apartment </span> <span><input type="radio" …

Member Avatar for ajwei810192
0
136
Member Avatar for ajwei810192

Hi, It is kind of difficult to explain what I am trying to do here, I will provide the form here to give a better idea. [CODE]<ul> <li>Select the type of your starting point of interest:<br/> <div id="start_menu"><form action="test_getrss.php" name="form1" method="post"> <span><input type="radio" value="Apartment" name="start" onclick="check(document.form1.start)"/> Apartment </span> <span><input type="radio" …

Member Avatar for Graphix
0
131