47 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for bprosic

Hi, how can I use regex or string replace to add missing "p" tags to sentences without tags. I tried matching* and splitting first the whole string matching "h" and "pre" tags but dont know how to merge it. `*let regexRule = /<pre>(.|\n|\r\n)[\s\S]*?<\/pre>/g;` Example - input let someVariable = "Basket …

Member Avatar for Diafol_2
1
1K
Member Avatar for Start4me

I've been looking tutorials and examples of setting the value field of a input tag. I'm trying to enter two IP addresses into the text fields on [this](https://www.ipaddressguide.com/cidr) website, under IP Range To CIDR. But my code won't enter anything. There's no ID tag, so I can't use the getElementById …

Member Avatar for Start4me
0
2K
Member Avatar for AssertNull

See this thread. https://www.daniweb.com/programming/software-development/threads/506236/may-i-please-have-help-with-a-cannot-find-symbol-error The first line of my response is code and I did not forget to indent. I also used the `</> Code` button. It turned green like it should, so it looked fine. Then I hit submit and the code was in regular text. Edited it a …

Member Avatar for AssertNull
0
453
Member Avatar for lewashby

The php/html file I am working on is laid out in this way. <?php // connect to DB $connection ?> html html html <?php foreach($connection-query($sql) as $row) do stuff ?> I'm getting the error 'Invalid argument supplied for foreach()' when I run this page. Can I not break out of …

Member Avatar for lewashby
0
500
Member Avatar for Niloofar24
Member Avatar for Niloofar24

Hi. In my CMS, when i type a content for a new post in the textarea, like this: one two three four five six and then click the submit button, it will save in the db table like the way i have typed, every word in a separate line. But …

Member Avatar for Niloofar24
1
1K
Member Avatar for Niloofar24

Hi everybody. I have a page with some post's title in it. I have put every title in an <a> tag. I want to click on each title and enter into an other page (single-post-page.php) to see the content of that post's title. The script of that page (single-post-page.php) should …

Member Avatar for Niloofar24
0
2K
Member Avatar for Niloofar24

Hello. I have a homework. I have asked to create a web crawler that be able to enter into a music website and then for the first step, collect the name of singers that their names starts with the letter "A". Now i need a little help for this step. …

Member Avatar for iJunkie22
0
375
Member Avatar for Niloofar24

Hi. How i can ask my crawler to print only the text of all <li></li> tags in a url page? I want to save the text of all <li></li> tags in a text file (without` <li></li>` words.)

Member Avatar for Niloofar24
0
3K
Member Avatar for jonow

I know i just posted below, but i have another question. Is it dangerous to have the <head> tag be included using PHP include? Is it dangerous to have the <body> tag or <html> tag or doctype to be included using PHP?

Member Avatar for Squiva
1
2K
Member Avatar for delta_frost

I wish to implement a tag system for a gallery,I have a huge number of images and all of them are to be associated with one or more tags. The number of tags is also large,but not exceeding say 500,isn't constant.Tag texts may also be large in certain cases. What …

Member Avatar for delta_frost
0
246
Member Avatar for polarpandabear

Hello Everyone! I'm a return user to this community. I just want to ask some help regarding of my problem in my site. the problem is that some of my php files can't display some of my content in our website. I'm a main programmer in our team and in …

Member Avatar for cereal
0
470
Member Avatar for zentsang

OK... so here's the deal. I have tried multiple Google and forum searches to no avail. Maybe it's they way I'm searching but this is a last resort. I'm trying to have a page (HTML and Javascript mix) that a user can input a few lines of code into. Then …

Member Avatar for zentsang
0
6K
Member Avatar for davecoventry

I have a link in my web page: <div class="site-logo"> <h1 class="site-title"> <a href="http://10.0.0.201/wp/" title="Document &amp; Draft" rel="home">Document &amp; Draft</a> </h1> <h2 class="site-description">For power CAD users</h2> </div> The "site-logo" class is as follows: .site-logo{ display: block; text-align: left; color: #9FA32E; font-family: "Trebuchet MS",Arial,Helvetica,Sans-Serif; font-size: 42px; text-decoration: none; } I'm expecting …

Member Avatar for JorgeM
0
870
Member Avatar for Fiorentino01^

Hi I am studying html5 and have a hard time understanding exactly how those tags function.Maybe I am used to the old div tags and cannot figure out what is going on. For example I look at a page made with html5 and css3.In the page there are 3 article …

Member Avatar for Fiorentino01^
0
280
Member Avatar for mark.kj.125

Currenlty i have learned html5 and css3 from different sites no one give complete tutorials about everything and doesn't made me satisfied when i see uniques combinations of tags and and some that i don't know i totally get disappointed.People have done great work only with html and css and …

Member Avatar for best4earn
0
278
Member Avatar for rmad17

<%@ page contentType="text/html; charset=UTF-8" %> <%@ taglib prefix="s" uri="/struts-tags" %> <html> <head> <title>Hello World</title> </head> <body> Hello World, <s:property value="name"/> </body> </html> I tried this code from an online tutorial. However eclipse says 'Can not find the tag library descriptor for "/struts-tags"' in line 2. Do I need to set …

Member Avatar for rmad17
0
272
Member Avatar for Violet_82

Chaps, I have a question about nesting elements. I am using bootstrap for a project I am working on, and for whoever didn't know that - I am one of those - in bootstrap buttons are `display:inline-block;` Now, I have this situation at the moment: `<p><button>My button</button> This button means …

Member Avatar for Violet_82
0
2K
Member Avatar for solomon_13000

The line appears as a red line in google chrome for the below tag: <hr width="1052" style="border: 1px solid #990000" color="#990000" size="1"> However when I view in IE it appears as a box with white filling but red border line. Did I miss something? Your help is kindly appreciated. Thank …

Member Avatar for Violet_82
0
240
Member Avatar for john.knapp

So when I attempted to tag an untagged article, I received a message about not having permission to delete existing tags - of which there were *none*.... Is this a feature or by design? Thanks, JK

Member Avatar for Dani
0
132
Member Avatar for eburlea

Hello. I want to get data from a table. I wrote the folloing JavaScript code: var homeTeam = document.getElementById('home').firstChild.data; The html code for the table is: <table> <tr> <td id="home"><span class='yellowcard'></span>Tottenham</td> <td id="away">Chelsea</td> </tr> </table> How is it possible to get the word 'Tottenham' in this case? My JavaScript code …

Member Avatar for Jimnto
0
18K
Member Avatar for tinabina22

I am having trouble vaildating my web-design. I am trying to change over from a table based design to a div base. Problem is I started out with tables so I now have a combination of both and sure how to fix it. I have pasted my code here: Please …

Member Avatar for diceadmin
0
690
Member Avatar for TrustyTony

Here is my take as code tag police in new era of Daniweb: http://www.daniweb.com/software-development/python/threads/418619/generate-page-using-python Reposted here: Could you repost with new code markup, which is indention by at least 4 spaces, after empty line, so you could do in your python editor: ctrl-A, indent, ctrl-C, undo (or close without saving) …

Member Avatar for Dani
0
250
Member Avatar for marifard

I have four database tables locality table: localityid, locality. jobtype table: typeid, type. applywork table: id, userid, applyfor applicationsent, jobtypeid, vacancyseenon companyname, doorno buildingname, street, localityid, postcode, telephone, website, email, notes users: id, role, name, surname, gender, username, password. I have a page to edit selected field from applywork. I …

Member Avatar for marifard
0
2K
Member Avatar for softDeveloper

Dear all, I'm passing a javascript String variable varname in a form inside a jsp to another page. [CODE] <form name="form1" action="nextpage.jsp" method="post "> <input type="hidden" name="varname" value="teste" /> <input type="button" value="button" onClick="document.form1.varname.value = function(window);"> <input type="submit" name="button" value="test1" /> </form> [/CODE] When I get the String in the next …

Member Avatar for softDeveloper
0
194
Member Avatar for astala27

Hi, I have some problems with the code below. Also below the code I have two pictures one from IE one from Chrome. [CODE] <object id="MediaPlayer1" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows® Media Player components..." type="application/x-oleobject" width="280" height="256"> <param name="fileName" value="<?php echo $check ?>"> <param name="animationatStart" value="false"> <param name="transparentatStart" value="false"> <param …

Member Avatar for astala27
0
140
Member Avatar for astala27

Hi, I have some problems with the code below. Also below the code I have two pictures one from IE one from Chrome. [CODE] <object id="MediaPlayer1" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows® Media Player components..." type="application/x-oleobject" width="280" height="256"> <param name="fileName" value="<?php echo $check ?>"> <param name="animationatStart" value="false"> <param name="transparentatStart" value="false"> <param …

Member Avatar for astala27
0
214
Member Avatar for GreaseJunkie

Hi everyone, thanks for reading this. I am trying to write some code so that a vote button won't allow a person to vote unless they are registered and logged in. I have this written, but it's not outputting properly. I'm pretty sure I am not encoding the URLS properly …

Member Avatar for GreaseJunkie
0
3K
Member Avatar for killerbeat

Hey, I have an website with dynamic text on it, i want to transfer the text to an textbox, and the text is between this tags: <pre> </pre> How do i do this?

Member Avatar for fiaworkz
0
3K
Member Avatar for JD321

I can't make the bottom copyright/links/etc table line up. Previous versions and some browsers had it to the left by just the 20-pixel width of the shade image column; now it is all the way to the left. Here's what I've tried to troubleshoot: 1) validated code and made changes …

Member Avatar for JD321
0
182

The End.