simple issue (i think) with setting a width in javasscript.


krs
HOME ยป Java

im trying to set a width dependant on screen sizes to a sliding tab on my site, so it will work on mobile devices but am having some issues with its width.
Im fairly certain the issue requires changing one line in the .js (line 105 in tab_slide.js) from
Code:
slide_params[opt.tab_slide_position] = calc_width + "%";
to
Code:
slide_params[opt.tab_slide_position] = - (the value i want to set) ;
ive added this to the CSS make it expand furth

Related to : simple issue (i think) with setting a width in javasscript.
simple issue (i think) with setting a width in javasscript.

im trying to set a width dependant on screen sizes to a sliding tab on my site, so it will work on mobile devices but am having some issues with its width.
Im fairly certain the issue requires changing one line in the .js (line 105 in tab_slide.js) from
Code:
slide_params[opt.tab_slide_position] = calc_width + "%";
to
Code:
slide_params[opt.tab_slide_position] = - (the value i want to set) ;
ive added this to the CSS make it expand furth
Setting iframe `src` in Javasscript throws 'Permission Denied' error in Internet Explorer

I have a 4 iframes on a page, and when each is loaded I have their src set to "" (empty). Clicking on different links in the page set's the src's to different URL's using jQuery. This works fine in FF, Chrome, Safari, etc., but IE gives me:


"Permission Denied - jquery.js?1350498802, line 103 character 430"


From what I've found this is because if a security feature IE to prevent XSS attacks. The problem is that the pages I'm loading in the iframes are in a different domain than the page they're being loaded into. I don't have access to the code in the domain that the iframes are getting their

setting width and fill character...(a compiler issue?)

For some reason this code is not correctly displaying the output....Is it a compiler issue? I'm not getting any affect from the width method, nor from the fill method. However, when I include <iomanip> and make a call to setw(int) then it works, but this code doesn't:

Code:

#include <cstdlib> #include <iostream> int main() { std::cout << "This is some text"; std::cout.width(5); std::cout.fill('*'); std::cout << "This is some other text"; int x; std::cin >> x; return 0; }


NOTE: I use bloodshed


Setting div width as % with min-width is not working. Min-width always wins.

I am having an issue with my width: 20%; being overridden by my min-width: 30px; (see lines 22 and 23 in the css box: http://jsfiddle.net/dLmnX/)


I am also using aspect ratio for the first time: I have picked up and chopped about the code from http://ansciath.tumblr.com/post/7347495869/css-aspect-ratio.


The aspect ratio part of the code:


#aspect {
padding-top: 120%; /* aspect ratio */
}

seems to be working fine, it is just the width in this div:


#shuffle1 {
display: inline-block;
margin: 0px auto;
position: relative;


HD Wallpapers
3D
3D Abstract
City
Celebrities
Indian Celebrities
Cars
Travel
Girls
Animals Birds
Movies
Sports
Black White
Nature
Planes
Anime
Food Drink
Dreamy Fantasy
Architecture
Games
Space
Holidays
Flowers
Love
Artistic
Baby
Beach
Bikes Motorcycles
Macro
Computers
Vector
Funny
Army
Textures
Brands
Misc
Music
Other
Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .