Hey,
anyone knows a jQuery plug-in for text zoom a-la MAC OS X "Large Type" function in Address Book? I'd use it for the same situation - to show full-screen phone number after clicking on it.
Cheers
OK so here is my previous post PHP Templated Site w/ file_get_content links
now i got that issue resolved BUT the problem is now that the content loads it displays UNDER the div i placed #CONTENT# inside so the styles are being ignored and it's posting #CONTENT# outside the divs at positions 0,0 any suggestions?
Found out whats happening by using "View Source" seems that it's putting all of the #CONTENT#, content that's being loaded in front of the tag.
Like this
<doctype...>
<div class="home">
blah blah
</div>
<head>
<script src=""></script>
</head>
<body>
<div class="header"></div>
<div class="contents">
#CONTENT# < where content SHOULD load
</div>
<div class="footer"></div>
</body>
so anyone got a fix?
OK so a better description I'll add relevant screen-shots
Whats happening is
/* file.class.php */
<?php
$file = new file();
class file{
var $path = "templates/clean";
var $ext = "tpl";
function loadfile($filename){
return file_get_contents($this->path . "/" . $filename . "." . $this->ext);
}
function css($val,$content='',$contentvar='#CSS#') {
if(is_array($val)) {
$css = 'style="';
foreach($val as $p) {
$css .= $p . ";";
}
$css .= '"';
} else {
$css = 'style="' . $val . '"';
}
if($content!='') {
return str_replace($contentvar,' ' . $css,$content);
} else {
return $css;
}
}
function setsize($content,$width='-1',$height='-1',$border='-1'){
$css = '';
if($width!='-1') { $css = $css . "width=\"".$width."\""; }
if($height!='-1') { $css = $css . "height=\"".$height."\""; }
if($border!='-1') { $css = $css . "border=\"" . $border . "\""; }
return str_replace('#SIZE#',' ' . $css,$content);
}
function setcontent($content,$newcontent,$vartoreplace='#CONTENT#'){
$val = str_replace($vartoreplace,$newcontent,$content);
return $val;
}
function p($content) {
$v = $content;
$v = str_replace('#CONTENT#','',$v);
$v = str_replace('#SIZE#','',$v);
print $v;
}
}
if (isset($_GET['page'])) {
$content = $_GET['page'].'.php';
} else {
$content = 'main.php';
}
?>
is calling for a file_get_contents at the bottom
which I use in
/* index.php */
<?php
include('classes/file.class.php');
// load the templates
$header = $file->loadfile('header');
$body = $file->loadfile('body');
$footer = $file->loadfile('footer');
// fill body.tpl #CONTENT# slot with $content
$body = $file->setcontent($body, $content);
// cleanup and output the full page
$file->p($header . $body . $footer);
?>
and loads into
/* body.tpl */
<div id="bodys">
<div id="bodt"></div>
<div id="bodm">
<div id="contents">
#CONTENT#
</div>
</div>
<div id="bodb"></div>
</div>
but the issue is as follows the $content loads properly img tags etc
<h2> tags etc but CSS styling is TOTALY ignored for position width z-index etc.
and as follows here's the screen-shot
JUST incase you require the css for where $content is being loaded
#bodys {
top:91px;
position:absolute;
width:100%;
}
#bodt {
margin-left:auto;
margin-right:auto;
top:3px;
position:relative;
width:820px;
height:42px;
background-image:url('images/pagetop.png');
background-repeat:no-repeat;
z-index: 0;
}
#bodm {
margin-left:auto;
margin-right:auto;
top:3px;
position:relative;
width:820px;
background-image:url('images/pagemid.png');
background-repeat:repeat-y;
z-index: 0;
}
#bodb {
margin-left:auto;
margin-right:auto;
bottom:-42px;
position:relative;
width:820px;
height:42px;
background-image:url('images/pagebot.png');
background-repeat:no-repeat;
z-index:-1;
}
#menuo {
position:absolute;
bottom:-2px;
z-index:199;
}
#contents {
position:relative;
top:5px;
left:25px;
width:770px;
z-index:10;
overflow: auto;
color: #000000;
line-height: 1.3em;
font-size: 12px;
}
#content {
position:absolute;
top:5px;
left:25px;
width:760px;
z-index:1;
color: #000000;
line-height: 1.3em;
font-size: 12px;
}
#contents p{
margin-bottom: 0.7em;
}
#contents a{
font-weight:bold;
color: #6fa5fd;
border-bottom: 1px dotted #6fa5fd;
}
In Firefox 'A' shows in the middle, on Chrome/IE it doesn't:
<button type="button" style="width:24px; text-align:center; vertical-align:middle">A</button>
Note the following has the same results:
<button type="button" style="width:24px;">A</button>
Hi
I have a problem with text with apostrophe symbol
example i try to test this xml having the symbol is then how can i compare ?
<xsl:for each select="country[nation='India's]">
this is statement showing error
Regards
Nanda.A
Hello!
I want to write video filter for Adobe Premiere, and I need to print/draw/render some text into the output video frame.
Looking into adobe premiere cs4 sdk I couldn't find a quick answer - is it possible?
Thanks!
Hello,
I am creating a ebook iPhone application and it consists of a bunch of pages.
My problem is some of the pages consists of images.
Is there a way to put the text and image in the same component.
What would be the best way to acheive this?
Thanks
The user should input two strings and the script will performe a text search:
$sql = "SELECT * FROM table_one WHERE name='%$str1%' AND MATCH (street, city, pin) AGAINST ('$hrtg'IN BOOLEAN MODE)";
somehow the % does not work, but it alwas did actually. please help?
i have some comboboxes and some textboxes on a form
i would like to clear all of them with one line of code. is that possible?
something like all_controls.text=""
hello folks,
i am looking to develop a new plugin for tinyMCE rich text Editor in umbraco.. i refered this link..
click here .. but the plugin is not showing up in richtext editor as expected..Am i missing any other settings?
I would like to know if it was possible using Javascript to find an image tag by its alt text. For instance I have this tag: <img src="Myimage.jpg" alt="Myimage"> would there be a vay to abtain the tag by looking for the "Myimage" alt attribute?
Hello!
I want to write video filter for Adobe Premiere, and I need to print/draw/render some text into the output video frame.
Looking into adobe premiere cs4 sdk I couldn't find a quick answer - is it possible?
Please provide some samples!
Thanks!
How can I find as many date patterns as possible from a textfile by python? The date pattern is defined as:
dd mmm yyyy
^ ^
| |
+---+--- spaces
where:
dd is a two digit number
mmm is three-character English month name (e.g. Jan, Mar, Dec)
yyyy is four digit year
there are two spaces as separators
Thanks!
Hey
is there any way to send whats in a text view (im trying to make a suggestion box) to my email address?
example
user types in the box " I think you should add twitter support"
then that is sent in the background to my email address [email protected]
then a message is popped up on the screen saying "suggestion sent"
just an example of what i mean
Any ideas, tutorial links would be greatly appreciated guys
Thanks
hi
i want to make use of Com intefaces into my .net application,
but this is related to Text Services Framework and i reasearched on this and it was like it only supports COM servers
can anyone help me on this
can i use TSF intefaces into my .net application
and if yes Please tell me how to do it
plzzzzzz :)
thanks
Hi all,
I am just trying to count the number of white spaces to the LEFT of a line from a textfile.
I have been using
count( line.begin(), line.end(), ' ' );
but obviously that includes ALL white spaces to the left, in between words and to the right.
So basically what I'm wanting it to do is once it hits a non-space character stop it from counting the white spaces.
Thanks everyone.
Hi, I am trying to remove text that is within parentheses (along with the parentheses themselves) but am having trouble with the scenario where there are parentheses within parentheses. This is the method I am using (in Ruby):
sentence.gsub(/\(.*?\)/, "")
and that works fine until I have a sentence such as:
"This is (a test (string))"
Then the above chokes. Anyone have any idea how to do this? I am completely stumped.
i have this
<li><a href="#" >title</a> <span style='text-align:right;'>(0)</span></li>
its not working
and this
<li><a href="#" >title</a> <span style='float:right;'>(0)</span></li>
its go to the down line (not working)
its appear like that
|title (0) |
i want it
|title (0)|
How does one draw text (with onClick event) in a caption bar on vista with aero Like Windows 7 ?
The example at delphi.about.com doesn't work on Vista with aero. Do you have any ideas?
Thanks to all.
Sorry for my bad english.
I want to select all the text of a System.Windows.Forms.TextBox() control in a GotFocus event, but all the examples I found make use of the .SelectionStart / .SelectionEnd properties of the control, and those aren't available in .NET 2.0 Framework.
Any ideas?
TIA,
Pablo
I need to write a rich text editor similar to Google Doc. Does anyone know any samples of similar projects? What technologies will I need? and what process is involved?
My text editor of choice for PHP work is Panic's Coda. But for Ruby on Rails, it's autocomplete feature is continuously in my way and ROR's standardization on 2 space tabs does not play well with Coda's settings. I've been going back to TextMate for ROR work, but was wondering if there were better options.
I have the following script:
http://jsfiddle.net/oshirowanen/6SUwR/3/
How do I give the drop down section a dynamic width based on the characters in the dropdown? For example, if "navigation 1" was "this is the first item in the navigation", How do I make the width of the whole dropdown wider automatically, but without affecting the size of the navigation button which causes the dropdown the dropdown when mouseover'ed?
Basically, I don't want to text to wrap in the dropdown, but at the same time, I don't want to button for the dropdown to go wider.
Hello I'm creating a GUI and I want the "Edit text" button to display the name of the file I selected....i've stored the filename and the pathname in a variable called "File_Selected:....but how do i pass the filename only to the EditText function on my GUI