Everything posted by chris92
-
CSS examples
Please I am looking for a website or blog that offers CSS and CSS3 tutorial in such a way that the tutorial are thought with an example of building a complete web page. Thanks
-
Change the value of a html element using jquery
Ok would work but look at what I ve tried doing: Jquery $(document).ready(function(){ $("#email").change(function(){ var em = $(this).val(); var atpos=em.indexOf("@@"); var dotpos=em.lastIndexOf("."); if (atpos < 1 || dotpos < atpos + 2 || dotpos + 2 >= x.length) { $("#m").text("Please enter a valid email") } else { $("#email").change(function () { $("#m").fadeOut(); }) } }) }) HTML <tr><td><label for="email">Email</label></td><td> <input value="@Request.Form["email"]" type="text" name="email" style="text-transform:lowercase" placeholder="Email" id="email" /></td><td id="m">@Html.ValidationMessage("email")</td><td id=""></td></tr> It worked for validating email but if I correct the email to valid format, the "else" part of the if statement in the jquery doesnt reflect. Thanks a lot.
- Change the value of a html element using jquery
-
jQuery toggle() on array of mysql fetched arrray
Damn.... This guy is a genius. Thanks a lot man. You just made my day. I owe U 1. Thanks Again........
-
jQuery toggle() on array of mysql fetched arrray
KK. Let me try this, I ll get back to you. I am really gratefull pal
-
jQuery toggle() on array of mysql fetched arrray
Please can you explain to me what you did? Tnx a lot for trying to help
-
jQuery toggle() on array of mysql fetched arrray
I am looking at embedding the courses "id" from the database using php into the id in html. I think it will work but i dont know how. Thanks as you help
-
jQuery toggle() on array of mysql fetched arrray
If I change the data-show all to content1, the issue persists. Do you have any idea on how to fix that? Thanks
-
jQuery toggle() on array of mysql fetched arrray
Thats exactly my problem. I just updated the link. take a look at it. It is an array of data an it has the same html attribute cause it generated by just one line of code
-
jQuery toggle() on array of mysql fetched arrray
LYNDSEY where did u add code tags please
-
jQuery toggle() on array of mysql fetched arrray
Find attached a screenshot of the php result, If I click on 1 category, i want it to expand only its courses but expands all. Thanks
-
jQuery toggle() on array of mysql fetched arrray
I have a fetched with php as an array and it is categorized. See code: <table><?php $cat_set = get_all_cats(); while($category = mysql_fetch_array($cat_set)){ if($category["category"] != "no-cat"){ echo "<tr colspam=\"2\"><td></td><td id=\"cats\">".$category["category"]."<td><img id=\"blink\" src=\"drop.png\"></td></td></tr>"; $course_set = get_courses_for_cats($category["cat_id"]); while ($course = mysql_fetch_array($course_set)) { echo"<tr class=\"cont\"><td><input value = ". $course["course_code"] ." name=\"boxes[]\" type=\"checkbox\"></td><td class=\"code\">" . $course["course_code"] . "</td></tr></input>"; } } else { $course_set = get_courses_for_cats($category["cat_id"]); while ($course = mysql_fetch_array($course_set)) { echo"<tr class=\"cont\"><td><input value = ". $course["course_code"] ." name=\"boxes[]\" type=\"checkbox\"></td><td class=\"code\">" . $course["course_code"] . "</td></tr></input>"; } } } ?> </table> So every course has a categoty. Now what I want to do is to use jquery to hide the course unless its category is clicked an this is what i have achieved <script> $(document).ready(function(){ $(".cont").hide(); $("#cats").click(function(){ $(".cont").toggle(); }); }) </script> but it when i click the category it hides all the courses even those that does not belong to itself. I know if the categories had different ids it would have been better but because it is an array, one id serves them all. Please any idea on how i can fix this. Thanks
-
Reporting in web desgin
Hi, please I need to report a data in a web page from mysql database using tables. Please how can control the pages of the report and adding page numbers, headers and footer and also add a print icon control in the design. Thanks. Samples are attached
-
How to make editable data tables on the web
Would this: http://stackoverflow.com/questions/16292572/how-to-make-html-table-excel-like-editable-for-multiple-cells-i-e-simultaneo solve my problem, If yes...... How would I insert the data to my database using php because am not inserting one set of data instead am inserting many.
-
How to make editable data tables on the web
rough.html This is an example of what I intend to do but I need the columns and rows to automatically increase and all the data submitted to my database just once.
-
How to make editable data tables on the web
Please how can I make an editable table in a Web like that of MS Access just like the attached image. The only idea I have is to arrange textboxes in that manner.
-
How to Design
Please I have been learning how to design websites but I just need guide on how to plan for a website and model all the objects before I can start working
-
Generate Dynamic Links and store in Mysql Database
Ok Boss. I get your idea but as I said am a beginner and to make it easier for me, I would appreciate greatly if you give me more detals on how to achieve this solution. Thanks. . . Am very grateful.
-
Generate Dynamic Links and store in Mysql Database
Helo am a beginner, please I need to automatically store links in my database depending on the clients request. I have a navigation web app and i need the users to fill a form. The content of the form will be the information to be displayed on the web page whose links are autogenerated and stored in the database just as facebook page of a facebook user works. Thanks